-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcypress.config.ts
More file actions
42 lines (40 loc) · 1.32 KB
/
cypress.config.ts
File metadata and controls
42 lines (40 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { defineConfig } from 'cypress';
import * as dotenv from 'dotenv';
import cypressSplit from 'cypress-split';
dotenv.config();
export default defineConfig({
defaultCommandTimeout: 150000, // 150
pageLoadTimeout: 600000, // 600
requestTimeout: 150000, // 150
responseTimeout: 200000, // 200
video: true,
videoCompression: true,
retries: 2,
reporter: 'junit',
reporterOptions: {
mochaFile: 'cypress/results/results.xml',
toConsole: false,
},
e2e: {
baseUrl: 'http://localhost:3000/',
excludeSpecPattern: '**/ignoredTestFiles/*.js',
specPattern: 'cypress/e2e/**/*.spec.{js,jsx,ts,tsx}',
experimentalRunAllSpecs: true,
setupNodeEvents(on, config) {
cypressSplit(on, config);
return config;
},
},
env: {
AAS_REPO_API_URL: 'http://localhost:5065/repo',
SUBMODEL_REPO_API_URL: 'http://localhost:5065/repo',
MNESTIX_AAS_GENERATOR_API_URL: 'http://localhost:5065',
AAS_DISCOVERY_API_URL: 'http://localhost:5065/discovery',
MNESTIX_API_KEY: 'verySecureApiKey',
TEST_ADMIN_USER_LOGIN: 'test-admin',
TEST_ADMIN_USER_PASSWORD: 'admin',
TEST_USER_LOGIN: 'test',
TEST_USER_PASSWORD: 'test',
KEYCLOAK_ISSUER: 'http://keycloak:8080',
},
});