Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cypress config for v13 #1209

Merged
merged 4 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions browserstack.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@
{
"browser": "chrome",
"os": "Windows 10",
"versions": ["latest"]
"versions": [
"latest"
]
},
{
"browser": "firefox",
"os": "Windows 10",
"versions": ["latest"]
"versions": [
"latest"
]
},
{
"browser": "edge",
"os": "Windows 10",
"versions": ["latest"]
"versions": [
"latest"
]
}
],
"run_settings": {
"cypress_config_file": "./cypress.json",
"cypress-version": "7",
"cypress_config_file": "./cypress.config.js",
"cypress-version": "13",
"project_name": "Auth0 SPA SDK",
"exclude": [],
"parallels": "5",
Expand All @@ -33,4 +39,4 @@
"local_mode": "always-on"
},
"disable_usage_reporting": false
}
}
15 changes: 15 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from 'cypress'

export default defineConfig({
chromeWebSecurity: false,
viewportWidth: 1000,
viewportHeight: 1000,
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)
},
excludeSpecPattern: 'migration.js',
},
})
6 changes: 0 additions & 6 deletions cypress.json

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const login = instanceId => {

describe('using multiple clients in the app', () => {
beforeEach(() => {
cy.server();
cy.visit('http://127.0.0.1:3000/multiple_clients.html');
get('client-logout-1').click();
cy.window().then(win => win.localStorage.clear());
Expand Down
134 changes: 0 additions & 134 deletions cypress/integration/migration.js

This file was deleted.

1 change: 0 additions & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ Cypress.Commands.add('loginNoCallback', () => {
});

Cypress.Commands.add('resetTests', () => {
cy.server();
cy.visit('http://127.0.0.1:3000');
cy.get('#reset-config').click();
cy.window().then(win => win.localStorage.clear());
Expand Down
File renamed without changes.