Skip to content

Commit

Permalink
mgr/dashboard: upgrade to cypress 12
Browse files Browse the repository at this point in the history
Looks like chrome 117 will need cypress >=12.15.0
cypress-io/cypress-documentation#5479

Signed-off-by: Nizamudeen A <[email protected]>
  • Loading branch information
nizamial09 committed Sep 15, 2023
1 parent 980a0a4 commit 3016a4d
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 31,317 deletions.
39 changes: 26 additions & 13 deletions src/pybind/mgr/dashboard/frontend/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from 'cypress'
import { defineConfig } from "cypress";

export default defineConfig({
video: true,
Expand All @@ -7,36 +7,49 @@ export default defineConfig({
responseTimeout: 45000,
viewportHeight: 1080,
viewportWidth: 1920,
projectId: 'k7ab29',
reporter: 'cypress-multi-reporters',
projectId: "k7ab29",
reporter: "cypress-multi-reporters",

reporterOptions: {
reporterEnabled: 'spec, mocha-junit-reporter',
reporterEnabled: "spec, mocha-junit-reporter",
mochaJunitReporterReporterOptions: {
mochaFile: 'cypress/reports/results-[hash].xml',
mochaFile: "cypress/reports/results-[hash].xml",
},
},

retries: 1,

env: {
LOGIN_USER: 'admin',
LOGIN_PWD: 'admin',
CEPH2_URL: 'https://localhost:4202/',
LOGIN_USER: "admin",
LOGIN_PWD: "admin",
CEPH2_URL: "https://localhost:4202/",
},

chromeWebSecurity: false,
eyesIsDisabled: false,
eyesFailCypressOnDiff: true,
eyesDisableBrowserFetching: false,
eyesLegacyHooks: true,
eyesTestConcurrency: 5,
eyesPort: 35321,

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)
return require("./cypress/plugins/index.js")(on, config);
},
baseUrl: 'https://localhost:4200/',
excludeSpecPattern: ['*.po.ts', '**/orchestrator/**'],
baseUrl: "https://localhost:4200/",
excludeSpecPattern: ["*.po.ts", "**/orchestrator/**"],
experimentalSessionAndOrigin: true,
specPattern: 'cypress/e2e/**/*-spec.{js,jsx,ts,tsx,feature}',
specPattern: "cypress/e2e/**/*-spec.{js,jsx,ts,tsx,feature}",
},

component: {
devServer: {
framework: "angular",
bundler: "webpack",
},
specPattern: "**/*.cy.ts",
},
})
});
Loading

0 comments on commit 3016a4d

Please sign in to comment.