diff --git a/.circleci/config.yml b/.circleci/config.yml index ea7f42256b..89944475ba 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -67,7 +67,7 @@ jobs: run-tests-in-parallel: executor: cypress/default - parallelism: 2 + parallelism: 6 steps: - attach_workspace: at: ~/ diff --git a/cypress/e2e/all_accessibility_pages.cy.ts b/cypress/e2e/all_accessibility_pages.cy.ts new file mode 100644 index 0000000000..478dc4bd2f --- /dev/null +++ b/cypress/e2e/all_accessibility_pages.cy.ts @@ -0,0 +1,17 @@ +const URLs: Array = Cypress.env('URLs') + +// Mostly this is to get a UI Coverage and Accessibility report +describe('Visit all Accessibility pages', () => { + URLs.forEach((URL) => { + if (!URL.startsWith('accessibility')) return + + it(`Visit ${URL} `, () => { + cy.visit(URL) + cy.get('h1') + .should('be.visible') + .and('not.have.text', 'Page Not Found') + + cy.get('[aria-label="Switch to dark mode"]').click() + }) + }) +}) \ No newline at end of file diff --git a/cypress/e2e/all_pages.cy.ts b/cypress/e2e/all_api_pages.cy.ts similarity index 82% rename from cypress/e2e/all_pages.cy.ts rename to cypress/e2e/all_api_pages.cy.ts index 2b61844d0c..ef49bb846c 100644 --- a/cypress/e2e/all_pages.cy.ts +++ b/cypress/e2e/all_api_pages.cy.ts @@ -1,8 +1,10 @@ const URLs: Array = Cypress.env('URLs') // Mostly this is to get a UI Coverage and Accessibility report -describe('Visit all pages', () => { +describe('Visit all API pages', () => { URLs.forEach((URL) => { + if (!URL.startsWith('api')) return + it(`Visit ${URL} `, () => { cy.visit(URL) cy.get('h1') diff --git a/cypress/e2e/all_app_pages.cy.ts b/cypress/e2e/all_app_pages.cy.ts new file mode 100644 index 0000000000..b8c2d6b86d --- /dev/null +++ b/cypress/e2e/all_app_pages.cy.ts @@ -0,0 +1,17 @@ +const URLs: Array = Cypress.env('URLs') + +// Mostly this is to get a UI Coverage and Accessibility report +describe('Visit all App pages', () => { + URLs.forEach((URL) => { + if (!URL.startsWith('app')) return + + it(`Visit ${URL} `, () => { + cy.visit(URL) + cy.get('h1') + .should('be.visible') + .and('not.have.text', 'Page Not Found') + + cy.get('[aria-label="Switch to dark mode"]').click() + }) + }) +}) \ No newline at end of file diff --git a/cypress/e2e/all_cloud_pages.cy.ts b/cypress/e2e/all_cloud_pages.cy.ts new file mode 100644 index 0000000000..8e470d1d6f --- /dev/null +++ b/cypress/e2e/all_cloud_pages.cy.ts @@ -0,0 +1,17 @@ +const URLs: Array = Cypress.env('URLs') + +// Mostly this is to get a UI Coverage and Accessibility report +describe('Visit all Cloud pages', () => { + URLs.forEach((URL) => { + if (!URL.startsWith('cloud')) return + + it(`Visit ${URL} `, () => { + cy.visit(URL) + cy.get('h1') + .should('be.visible') + .and('not.have.text', 'Page Not Found') + + cy.get('[aria-label="Switch to dark mode"]').click() + }) + }) +}) \ No newline at end of file diff --git a/cypress/e2e/all_ui_cov_pages.cy.ts b/cypress/e2e/all_ui_cov_pages.cy.ts new file mode 100644 index 0000000000..b8344666c0 --- /dev/null +++ b/cypress/e2e/all_ui_cov_pages.cy.ts @@ -0,0 +1,17 @@ +const URLs: Array = Cypress.env('URLs') + +// Mostly this is to get a UI Coverage and Accessibility report +describe('Visit all UI Coverage pages', () => { + URLs.forEach((URL) => { + if (!URL.startsWith('ui-coverage')) return + + it(`Visit ${URL} `, () => { + cy.visit(URL) + cy.get('h1') + .should('be.visible') + .and('not.have.text', 'Page Not Found') + + cy.get('[aria-label="Switch to dark mode"]').click() + }) + }) +}) \ No newline at end of file