Skip to content

Commit

Permalink
Only run nonSmoke tests as part of the Scheduled E2Es
Browse files Browse the repository at this point in the history
  • Loading branch information
karinathomasbbc committed Feb 6, 2025
1 parent 939a79e commit 38085c3
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions cypress/e2e/pages/articles/index.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 38085c3

Please sign in to comment.