mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-30 03:18:24 +00:00
chore(cypress): upgrade cypress to latest v12.5.1 (#7276)
This commit is contained in:
parent
fcc9dbb7bc
commit
c0bc477ca5
24
smoke-test/tests/cypress/cypress.config.js
Normal file
24
smoke-test/tests/cypress/cypress.config.js
Normal 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,
|
||||
},
|
||||
})
|
||||
@ -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
|
||||
}
|
||||
@ -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,
|
||||
});
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -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
Loading…
x
Reference in New Issue
Block a user