migration from cypress 9 to cypress 10
This commit is contained in:
39
e2e/cypress.config.js
Normal file
39
e2e/cypress.config.js
Normal file
@@ -0,0 +1,39 @@
|
||||
const { defineConfig } = require('cypress')
|
||||
|
||||
module.exports = defineConfig({
|
||||
defaultCommandTimeout: 5000,
|
||||
xxxretries: 3,
|
||||
xbaseUrl: 'http://localhost:7575',
|
||||
xxxbaseUrl: 'http://localhost:8080',
|
||||
video: false,
|
||||
env: {
|
||||
xapiBaseUrl: 'http://localhost:7575/api/v8.0/',
|
||||
apiBaseUrl: 'https://test.helloayanova.com/api/v8.0/',
|
||||
admin: {
|
||||
login: 'superuser',
|
||||
password: 'l3tm3in',
|
||||
},
|
||||
accounting: {
|
||||
login: 'Accounting',
|
||||
password: 'Accounting',
|
||||
},
|
||||
service: {
|
||||
login: 'Service',
|
||||
password: 'Service',
|
||||
},
|
||||
customer: {
|
||||
login: 'Customer',
|
||||
password: 'Customer',
|
||||
},
|
||||
},
|
||||
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)
|
||||
},
|
||||
specPattern: 'tests/**/*.cy.{js,jsx,ts,tsx}',
|
||||
supportFile: 'support/e2e.js',
|
||||
baseUrl: 'https://test.helloayanova.com',
|
||||
},
|
||||
})
|
||||
@@ -1,30 +0,0 @@
|
||||
{
|
||||
"defaultCommandTimeout": 5000,
|
||||
"xxxretries": 3,
|
||||
"integrationFolder": "tests",
|
||||
"supportFile": "support",
|
||||
"xbaseUrl": "http://localhost:7575",
|
||||
"baseUrl": "https://test.helloayanova.com",
|
||||
"xxxbaseUrl": "http://localhost:8080",
|
||||
"video": false,
|
||||
"env": {
|
||||
"xapiBaseUrl": "http://localhost:7575/api/v8.0/",
|
||||
"apiBaseUrl": "https://test.helloayanova.com/api/v8.0/",
|
||||
"admin": {
|
||||
"login": "superuser",
|
||||
"password": "l3tm3in"
|
||||
},
|
||||
"accounting": {
|
||||
"login": "Accounting",
|
||||
"password": "Accounting"
|
||||
},
|
||||
"service": {
|
||||
"login": "Service",
|
||||
"password": "Service"
|
||||
},
|
||||
"customer": {
|
||||
"login": "Customer",
|
||||
"password": "Customer"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
./node_modules/.bin/cypress open
|
||||
./node_modules/.bin/cypress open --browser chrome --e2e
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"test": "tests"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cypress": "^9.7.0"
|
||||
"cypress": "^10.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"open": "./node_modules/.bin/cypress open",
|
||||
|
||||
Reference in New Issue
Block a user