Skip to content

Commit

Permalink
Upgraded Cypress and changed cypress config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangeetha-Bheeman committed Nov 20, 2023
1 parent a273174 commit dc7ad70
Show file tree
Hide file tree
Showing 6 changed files with 330 additions and 131 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/js_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ jobs:
run: >-
npm ci --legacy-peer-deps
- name: Cypress run
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v5
with:
start: npm run serve --legacy-peer-deps
wait-on: http://localhost:8080/
config-file: cypress.json
spec: 'tests/e2e/**/*'
env:
CYPRESS_baseUrl: http://localhost:8080/
spec: "tests/e2e/**/*"
config-file: cypress.config.js
config: video=false
install: false
timeout-minutes: 5
browser: chrome
# after the test run completes
# store any screenshots
# NOTE: screenshots will be generated only if E2E test failed
Expand Down
15 changes: 15 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { defineConfig } = require('cypress')

module.exports = defineConfig({
fixturesFolder: 'tests/e2e/fixtures',
screenshotsFolder: 'tests/e2e/screenshots',
videosFolder: 'tests/e2e/videos',
e2e: {
// eslint-disable-next-line no-unused-vars
setupNodeEvents(on, config) {},
specPattern: 'tests/e2e/specs/**/*.{js,jsx,ts,tsx}',
supportFile: 'tests/e2e/support/index.js',
baseUrl: 'http://localhost:8080/',
experimentalRunAllSpecs: true,
},
})
3 changes: 0 additions & 3 deletions cypress.json

This file was deleted.

Loading

0 comments on commit dc7ad70

Please sign in to comment.