Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Jan 5, 2024
1 parent 8ebaa1b commit 6190855
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions site/gatsby-site/cypress/e2e/integration/pages.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,54 @@ describe('Pages', () => {

const paths = [
'/',
'/taxonomies/',
'/apps/discover/',
'/apps/incidents/',
'/apps/newsdigest/',
'/apps/submit/',
'/apps/submitted/',
'/apps/variants/',
'/blog/',
'/summaries/flagged/',
'/summaries/incidents/',
'/summaries/incidentsOverTime/',
'/summaries/leaderboard/',
'/summaries/spatial/',
'/research/snapshots/',
'/entities/',
'/account/',
'/summaries/wordcounts/',
'/about/', // doc template
// '/taxonomies/',
// '/apps/discover/',
// '/apps/incidents/',
// '/apps/newsdigest/',
// '/apps/submit/',
// '/apps/submitted/',
// '/apps/variants/',
// '/blog/',
// '/summaries/flagged/',
// '/summaries/incidents/',
// '/summaries/incidentsOverTime/',
// '/summaries/leaderboard/',
// '/summaries/spatial/',
// '/research/snapshots/',
// '/entities/',
// '/account/',
// '/summaries/wordcounts/',
// '/about/', // doc template
];

if (!Cypress.env('isEmptyEnvironment')) {
paths.push('/apps/classifications/');
paths.push('/reports/2302/');
paths.push('/cite/1/');
paths.push('/entities/facebook/');
paths.push('/blog/incident-report-2023-january/');
paths.push('/taxonomy/csetv0/');
paths.push('/taxonomy/csetv1/');
}
// if (!Cypress.env('isEmptyEnvironment')) {
// paths.push('/apps/classifications/');
// paths.push('/reports/2302/');
// paths.push('/cite/1/');
// paths.push('/entities/facebook/');
// paths.push('/blog/incident-report-2023-january/');
// paths.push('/taxonomy/csetv0/');
// paths.push('/taxonomy/csetv1/');
// }

const languages = [
{
code: 'en',
hrefLang: 'en-US',
},
{
code: 'es',
hrefLang: 'es',
},
{
code: 'fr',
hrefLang: 'fr',
},
// {
// code: 'es',
// hrefLang: 'es',
// },
// {
// code: 'fr',
// hrefLang: 'fr',
// },
];

paths.forEach((path) => {
languages.forEach(({ code }) => {
it(`/${code}${path} Should not have errors`, () => {
it(`/${code}${path} Should not have errors`, { defaultCommandTimeout: 30000 }, () => {
const canonicalPath = switchLocalizedPath({ newLang: code, path });

cy.visit(canonicalPath, {
Expand Down

0 comments on commit 6190855

Please sign in to comment.