]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress.config.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress.config.ts
1 import { defineConfig } from 'cypress';
2
3 export default defineConfig({
4 video: true,
5 videoUploadOnPasses: false,
6 defaultCommandTimeout: 120000,
7 responseTimeout: 45000,
8 viewportHeight: 1080,
9 viewportWidth: 1920,
10 projectId: 'k7ab29',
11 reporter: 'cypress-multi-reporters',
12
13 reporterOptions: {
14 reporterEnabled: 'spec, mocha-junit-reporter',
15 mochaJunitReporterReporterOptions: {
16 mochaFile: 'cypress/reports/results-[hash].xml'
17 }
18 },
19
20 retries: 1,
21
22 env: {
23 LOGIN_USER: 'admin',
24 LOGIN_PWD: 'admin',
25 CEPH2_URL: 'https://localhost:4202/'
26 },
27
28 chromeWebSecurity: false,
29 eyesIsDisabled: false,
30 eyesFailCypressOnDiff: true,
31 eyesDisableBrowserFetching: false,
32 eyesLegacyHooks: true,
33 eyesTestConcurrency: 5,
34 eyesPort: 35321,
35
36 e2e: {
37 // We've imported your old cypress plugins here.
38 // You may want to clean this up later by importing these.
39 setupNodeEvents(on, config) {
40 return require('./cypress/plugins/index.js')(on, config);
41 },
42 baseUrl: 'https://localhost:4200/',
43 excludeSpecPattern: ['*.po.ts', '**/orchestrator/**'],
44 experimentalSessionAndOrigin: true,
45 specPattern: 'cypress/e2e/**/*-spec.{js,jsx,ts,tsx,feature}'
46 },
47
48 component: {
49 devServer: {
50 framework: 'angular',
51 bundler: 'webpack'
52 },
53 specPattern: '**/*.cy.ts'
54 }
55 });