summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/cypress.config.ts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/pybind/mgr/dashboard/frontend/cypress.config.ts
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/cypress.config.ts')
-rw-r--r--src/pybind/mgr/dashboard/frontend/cypress.config.ts55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/cypress.config.ts b/src/pybind/mgr/dashboard/frontend/cypress.config.ts
new file mode 100644
index 000000000..fa3349883
--- /dev/null
+++ b/src/pybind/mgr/dashboard/frontend/cypress.config.ts
@@ -0,0 +1,55 @@
+import { defineConfig } from 'cypress';
+
+export default defineConfig({
+ video: true,
+ videoUploadOnPasses: false,
+ defaultCommandTimeout: 120000,
+ responseTimeout: 45000,
+ viewportHeight: 1080,
+ viewportWidth: 1920,
+ projectId: 'k7ab29',
+ reporter: 'cypress-multi-reporters',
+
+ reporterOptions: {
+ reporterEnabled: 'spec, mocha-junit-reporter',
+ mochaJunitReporterReporterOptions: {
+ mochaFile: 'cypress/reports/results-[hash].xml'
+ }
+ },
+
+ retries: 1,
+
+ env: {
+ 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);
+ },
+ baseUrl: 'https://localhost:4200/',
+ excludeSpecPattern: ['*.po.ts', '**/orchestrator/**'],
+ experimentalSessionAndOrigin: true,
+ specPattern: 'cypress/e2e/**/*-spec.{js,jsx,ts,tsx,feature}'
+ },
+
+ component: {
+ devServer: {
+ framework: 'angular',
+ bundler: 'webpack'
+ },
+ specPattern: '**/*.cy.ts'
+ }
+});