Skip to content

Commit cdc65a5

Browse files
Update Cypress config for v13 (auth0#580)
1 parent 5c467e1 commit cdc65a5

File tree

8 files changed

+22
-18
lines changed

8 files changed

+22
-18
lines changed

.github/actions/integration/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ runs:
7171
- name: Run Cypress test
7272
uses: cypress-io/github-action@v6
7373
with:
74-
spec: cypress/integration/smoke.test.ts
74+
spec: cypress/e2e/smoke.cy.ts
7575
install: false
7676
wait-on: 'http://localhost:3001/, http://localhost:3000'

.github/workflows/browserstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Run tests
5656
shell: bash
57-
run: npx concurrently --raw --kill-others --success first "npm:start" "wait-on http://127.0.0.1:3000/ && browserstack-cypress run --build-name ${{ github.event.pull_request.head.sha || github.ref }} --no-wrap --specs "cypress/integration/smoke-bs.test.ts""
57+
run: npx concurrently --raw --kill-others --success first "npm:start" "wait-on http://127.0.0.1:3000/ && browserstack-cypress run --build-name ${{ github.event.pull_request.head.sha || github.ref }} --no-wrap --specs "cypress/e2e/smoke-bs.cy.ts""
5858
env:
5959
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
6060
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}

browserstack.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
}
1818
],
1919
"run_settings": {
20-
"cypress_config_file": "./cypress-bs.json",
21-
"cypress-version": "9",
20+
"cypress_config_file": "./cypress.config.js",
21+
"cypress-version": "13.1",
2222
"project_name": "Auth0 React SDK",
2323
"exclude": [],
2424
"parallels": "5",

cypress.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { defineConfig } = require('cypress');
2+
3+
module.exports = defineConfig({
4+
chromeWebSecurity: false,
5+
viewportWidth: 1000,
6+
viewportHeight: 1000,
7+
fixturesFolder: false,
8+
reporter: 'junit',
9+
reporterOptions: {
10+
mochaFile: 'test-results/cypress/junit-[hash].xml',
11+
},
12+
e2e: {
13+
setupNodeEvents(on, config) {},
14+
baseUrl: 'http://localhost:3000',
15+
supportFile: false,
16+
},
17+
});

cypress.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"test:nextjs": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:run",
3939
"test:nextjs:watch": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:open",
4040
"test:integration": "npm run test:cra && npm run test:gatsby && npm run test:nextjs",
41-
"cypress:run": "cypress run --spec 'cypress/integration/smoke.test.ts'",
41+
"cypress:run": "cypress run --spec 'cypress/e2e/smoke.cy.ts'",
4242
"cypress:open": "cypress open"
4343
},
4444
"repository": {

0 commit comments

Comments
 (0)