From 38085c3bc85af9977cd2ac5de254d7e1609d83e2 Mon Sep 17 00:00:00 2001 From: Karina Thomas Date: Thu, 6 Feb 2025 12:08:27 +0000 Subject: [PATCH] Only run nonSmoke tests as part of the Scheduled E2Es --- cypress/e2e/pages/articles/index.cy.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/cypress/e2e/pages/articles/index.cy.js b/cypress/e2e/pages/articles/index.cy.js index b1ac8cf4291..3044908ce6e 100644 --- a/cypress/e2e/pages/articles/index.cy.js +++ b/cypress/e2e/pages/articles/index.cy.js @@ -195,18 +195,9 @@ const nonSmokeCanonicalTestSuites = [ }, ]; -/** - * TODO: Determine whether when running scheduled E2Es, should we run the smoke URLs too? - * Or should we only run the non-smoke tests - and leave the smoke tests for the Simorgh CD pipeline - */ -let canonicalTestSuites = [ - ...nonSmokeCanonicalTestSuites, - ...smokeCanonicalTestSuites, -]; - -if (Cypress.env.SMOKE) { - canonicalTestSuites = smokeCanonicalTestSuites; -} +const canonicalTestSuites = Cypress.env.SMOKE + ? smokeCanonicalTestSuites + : nonSmokeCanonicalTestSuites; const ampTestSuites = canonicalTestSuites.map(testSuite => { return {