chore(cypress): upgrade cypress to latest v12.5.1 (#7276)

This commit is contained in:
Aditya Radhakrishnan 2023-02-07 20:09:01 -08:00 committed by GitHub
parent fcc9dbb7bc
commit c0bc477ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 901 additions and 890 deletions

View File

@ -0,0 +1,24 @@
const { defineConfig } = require('cypress')
module.exports = defineConfig({
chromeWebSecurity: false,
viewportHeight: 960,
viewportWidth: 1536,
projectId: 'hkrxk5',
defaultCommandTimeout: 10000,
retries: {
runMode: 2,
openMode: 0,
},
video: false,
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:9002/',
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
experimentalStudio: true,
},
})

View File

@ -1,13 +0,0 @@
{
"baseUrl": "http://localhost:9002/",
"chromeWebSecurity": false,
"viewportHeight": 960,
"viewportWidth": 1536,
"projectId": "hkrxk5",
"defaultCommandTimeout": 10000,
"retries": {
"runMode": 2,
"openMode": 0
},
"video": false
}

View File

@ -20,8 +20,8 @@ Cypress.Commands.add('login', () => {
method: 'POST',
url: '/logIn',
body: {
username: Cypress.env('ADMIN_USERNAME'),
password: Cypress.env('ADMIN_PASSWORD'),
username: Cypress.env('ADMIN_USERNAME'),
password: Cypress.env('ADMIN_PASSWORD'),
},
retryOnStatusCodeFailure: true,
});

View File

@ -165,7 +165,7 @@ def test_run_cypress(frontend_session, wait_for_healthchecks):
else:
record_arg = " "
rest_specs = set(os.listdir("tests/cypress/cypress/integration"))
rest_specs = set(os.listdir("tests/cypress/cypress/e2e"))
cypress_suite1_specs = {"mutations", "search", "views"}
rest_specs.difference_update(set(cypress_suite1_specs))
strategy_spec_map = {

View File

@ -4,7 +4,7 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"cypress": "^9.7.0",
"cypress": "12.5.1",
"cypress-timestamps": "^1.2.0"
}
}

File diff suppressed because it is too large Load Diff