migration from cypress 9 to cypress 10

This commit is contained in:
2022-08-07 19:26:07 +00:00
parent 38572219bc
commit 8f37876a9d
31 changed files with 41 additions and 32 deletions

39
e2e/cypress.config.js Normal file
View 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',
},
})