-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
329 additions
and
974 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+9.13 KB
...rser-npm-8.22.0-024bd80eca-6b7fee5234.zip → ...rser-npm-8.23.0-798a01aba9-7c3ae38665.zip
Binary file not shown.
Binary file renamed
BIN
+350 KB
...ager-npm-8.22.0-e9d4565a7f-7fb4bae6d9.zip → ...ager-npm-8.23.0-437414802f-eb4624ccd9.zip
Binary file not shown.
Binary file renamed
BIN
+34 KB
...ypes-npm-8.22.0-cc19234a46-b43ea5b05e.zip → ...ypes-npm-8.23.0-972ca6e315-e2a68bc6e8.zip
Binary file not shown.
Binary file renamed
BIN
+187 KB
...tree-npm-8.22.0-3f7a16feac-e3c0b191e2.zip → ...tree-npm-8.23.0-1907506b84-ddc9790d46.zip
Binary file not shown.
Binary file renamed
BIN
+9.8 KB
...keys-npm-8.22.0-5832313ce6-1a172620d4.zip → ...keys-npm-8.23.0-7428536446-fd473849b8.zip
Binary file not shown.
Binary file renamed
BIN
+871 KB
...ress-npm-14.0.1-36969eec2f-a14b17bbcc.zip → ...ress-npm-14.0.2-4afb252780-1adb4dd755.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,241 @@ | ||
import runTestsForPage from '../../../support/helpers/runTestsForPage'; | ||
import { testsThatAlwaysRun, testsThatFollowSmokeTestConfig } from './tests'; | ||
import { testsThatFollowSmokeTestConfigForAMPOnly } from './testsForAMPOnly'; | ||
import { testsThatFollowSmokeTestConfigForCanonicalOnly } from './testsForCanonicalOnly'; | ||
import { testsForLiteOnly } from './testsForLiteOnly'; | ||
/* eslint-disable import/no-relative-packages */ | ||
import runTestsForPage from '#nextjs/cypress/support/helpers/runTestsForPage'; | ||
import { testsThatAlwaysRunForAllPages as testsForAllPages } from '../testsForAllPages'; | ||
import { testsThatFollowSmokeTestConfigForAllCanonicalPages as testsForAllCanonicalPages } from '../testsForAllCanonicalPages'; | ||
import { testsThatFollowSmokeTestConfigForAllAMPPages as testsForAllAMPPages } from '../testsForAllAMPPages'; | ||
import canonicalAndAmpArticleTests from './tests'; | ||
import ampArticleTests from './testsForAMPOnly'; | ||
import canonicalArticleTests from './testsForCanonicalOnly'; | ||
import liteArticleTests from './testsForLiteOnly'; | ||
|
||
const testsForPage = { | ||
const canonicalTests = [ | ||
testsForAllPages, | ||
testsForAllCanonicalPages, | ||
canonicalAndAmpArticleTests, | ||
canonicalArticleTests, | ||
]; | ||
|
||
const ampTests = [ | ||
testsForAllPages, | ||
testsForAllAMPPages, | ||
canonicalAndAmpArticleTests, | ||
ampArticleTests, | ||
]; | ||
|
||
const smokeCanonicalTestSuites = [ | ||
{ | ||
path: '/gahuza/articles/c5y51yxeg53o', | ||
runforEnv: ['local', 'live'], | ||
service: 'gahuza', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/mundo/articles/ce42wzqr2mko', | ||
runforEnv: ['local', 'test'], | ||
service: 'mundo', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/mundo/articles/ce7p1pw7165o', | ||
runforEnv: ['live'], | ||
service: 'mundo', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/persian/articles/cej3lzd5e0go', | ||
runforEnv: ['local', 'test'], | ||
service: 'persian', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/persian/articles/cld9872jgyjo', | ||
runforEnv: ['live'], | ||
service: 'persian', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/persian/articles/crgxnrdl1xvo', | ||
runforEnv: ['live'], | ||
service: 'persian', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/pidgin/articles/cgwk9w4zlg8o', | ||
runforEnv: ['live'], | ||
service: 'pidgin', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/pidgin/articles/crrrkxz2k0ko', | ||
runforEnv: ['test'], | ||
service: 'pidgin', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/pidgin/articles/cwl08rd38l6o', | ||
runforEnv: ['local', 'test'], | ||
service: 'pidgin', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/pidgin/articles/cw8qv1d11l9o', | ||
runforEnv: ['live'], | ||
service: 'pidgin', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/scotland/articles/czwj5l0n210o', | ||
runforEnv: ['local'], | ||
service: 'scotland', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/serbian/articles/c805k05kr73o/cyr', | ||
runforEnv: ['local'], | ||
service: 'serbian', | ||
variant: 'cyr', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/serbian/articles/c805k05kr73o/lat', | ||
runforEnv: ['local'], | ||
service: 'serbian', | ||
variant: 'lat', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/zhongwen/articles/c3xd4x9prgyo/simp', | ||
runforEnv: ['local'], | ||
service: 'zhongwen', | ||
variant: 'simp', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/zhongwen/articles/c3xd4x9prgyo/trad', | ||
runforEnv: ['local'], | ||
service: 'zhongwen', | ||
variant: 'trad', | ||
tests: [...canonicalTests], | ||
}, | ||
]; | ||
|
||
const nonSmokeCanonicalTestSuites = [ | ||
{ | ||
path: '/afaanoromoo/articles/c4g19kgl85ko', | ||
runforEnv: ['test'], | ||
service: 'afaanoromoo', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/afrique/articles/cz216x22106o', | ||
runforEnv: ['test'], | ||
service: 'afrique', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/azeri/articles/cv0lm08kngmo', | ||
runforEnv: ['live'], | ||
service: 'azeri', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/gahuza/articles/cey23zx8wx8o', | ||
runforEnv: ['test'], | ||
service: 'gahuza', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/japanese/articles/cdd6p3r9g7jo', | ||
runforEnv: ['test'], | ||
service: 'japanese', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/japanese/articles/cj4m7n5nrd8o', | ||
runforEnv: ['live'], | ||
service: 'japanese', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/kyrgyz/articles/c414v42gy75o', | ||
runforEnv: ['live'], | ||
service: 'kyrgyz', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/kyrgyz/articles/c41knv20gk7o', | ||
runforEnv: ['live'], | ||
service: 'kyrgyz', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/kyrgyz/articles/cpgx4k72wv4o', | ||
runforEnv: ['live'], | ||
service: 'kyrgyz', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/mundo/articles/ce7p1pw7165o', | ||
runforEnv: ['live'], | ||
service: 'mundo', | ||
tests: [...canonicalTests], | ||
}, | ||
|
||
{ | ||
path: '/nepali/articles/c16ljg1v008o', | ||
runforEnv: ['live'], | ||
service: 'nepali', | ||
tests: [...canonicalTests], | ||
}, | ||
{ | ||
path: '/ukrainian/articles/c8zv0eed9gko', | ||
runforEnv: ['live'], | ||
service: 'ukrainian', | ||
tests: [...canonicalTests], | ||
}, | ||
]; | ||
|
||
const canonicalTestSuites = Cypress.env.SMOKE | ||
? smokeCanonicalTestSuites | ||
: nonSmokeCanonicalTestSuites; | ||
|
||
const ampTestSuites = canonicalTestSuites.map(testSuite => { | ||
return { | ||
...testSuite, | ||
path: `${testSuite.path}.amp`, | ||
tests: [...ampTests], | ||
}; | ||
}); | ||
|
||
// Additional scenarios for news on higher environments | ||
ampTestSuites.push( | ||
...[ | ||
{ | ||
path: '/news/articles/cn7k01xp8kxo.amp', | ||
runforEnv: ['local', 'test'], | ||
service: 'news', | ||
tests: [...ampTests], | ||
}, | ||
{ | ||
path: '/news/articles/cj7xrxz0e8zo.amp', | ||
runforEnv: ['live'], | ||
service: 'news', | ||
tests: [...ampTests], | ||
}, | ||
], | ||
); | ||
|
||
const liteTestSuites = canonicalTestSuites | ||
.filter(({ service }) => service !== 'news') | ||
.map(testSuite => { | ||
return { | ||
...testSuite, | ||
path: `${testSuite.path}.lite`, | ||
tests: [liteArticleTests], | ||
}; | ||
}); | ||
|
||
runTestsForPage({ | ||
pageType: 'articles', | ||
testsThatAlwaysRun, | ||
testsThatFollowSmokeTestConfig, | ||
testsThatFollowSmokeTestConfigForCanonicalOnly, | ||
testsThatFollowSmokeTestConfigForAMPOnly, | ||
testsForLiteOnly, | ||
}; | ||
|
||
runTestsForPage(testsForPage); | ||
testSuites: [...canonicalTestSuites, ...ampTestSuites, ...liteTestSuites], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.