Skip to content

Commit

Permalink
Update Cypress configuration and support files (#2370)
Browse files Browse the repository at this point in the history
Upgrades cypress to latest
  • Loading branch information
six7 authored Nov 15, 2023
1 parent dc67171 commit 06215ae
Show file tree
Hide file tree
Showing 12 changed files with 1,012 additions and 1,106 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
# 2: Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v6
with:
build: npm run build:cy
start: npm run serve
Expand Down
18 changes: 18 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig } from 'cypress'

export default defineConfig({
chromeWebSecurity: false,
env: {
'cypress-react-selector': {
root: '#app',
},
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
baseUrl: 'http://localhost:5000',
},
})
10 changes: 0 additions & 10 deletions cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions cypress/support/index.js → cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ import './commands';

// Alternatively you can use CommonJS syntax:
// require('./commands')

Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
Loading

0 comments on commit 06215ae

Please sign in to comment.