Skip to content

Commit

Permalink
Update cypress tests to run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Aug 22, 2024
1 parent 200baa7 commit 52916ea
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 1,960 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
RunTests:
runs-on: ubuntu-latest

env:
CYPRESS_INCLUDE_TAGS: ${{ inputs.tags }}

steps:
- name: Get Code
uses: actions/checkout@v4
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,77 +60,32 @@ jobs:
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: post-deploy
baseUrl: https://acecentre.org.uk

GauntletRunTwoPost:
needs: [GauntletRunOnePost]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: post-deploy
baseUrl: https://acecentre.org.uk

GauntletRunThreePost:
needs: [GauntletRunTwoPost]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: post-deploy
baseUrl: https://acecentre.org.uk

GauntletRunFourPost:
needs: [GauntletRunThreePost]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: post-deploy
baseUrl: https://acecentre.org.uk

GauntletRunFivePost:
needs: [GauntletRunFourPost]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: post-deploy
baseUrl: https://acecentre.org.uk

GauntletRunOnePre:
needs: [BuildProductionOnDigitalOcean]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: pre-deploy
baseUrl: https://integration.acecentre.org.uk

GauntletRunTwoPre:
needs: [GauntletRunOnePre]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: pre-deploy
baseUrl: https://integration.acecentre.org.uk

GauntletRunThreePre:
needs: [GauntletRunTwoPre]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: pre-deploy
baseUrl: https://integration.acecentre.org.uk

GauntletRunFourPre:
needs: [GauntletRunThreePre]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: pre-deploy
baseUrl: https://integration.acecentre.org.uk

GauntletRunFivePre:
needs: [GauntletRunFourPre]
uses: ./.github/workflows/cypress.yml
secrets: inherit
with:
tags: pre-deploy
baseUrl: https://integration.acecentre.org.uk
3 changes: 1 addition & 2 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { tagify } = require("cypress-tags");
const { defineConfig } = require("cypress");

module.exports = defineConfig({
Expand All @@ -17,7 +16,7 @@ module.exports = defineConfig({
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
on("file:preprocessor", tagify(config));
on("file:preprocessor", config);
},
baseUrl: "http://localhost:3000",
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"@testing-library/cypress": "10.0.1",
"compare-versions": "^6.1.0",
"cypress": "13.2.0",
"cypress-tags": "1.1.2",
"dotenv": "^16.0.3",
"eslint": "8.34.0",
"eslint-config-next": "14.0.2",
Expand Down
Loading

0 comments on commit 52916ea

Please sign in to comment.