-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.cjs
More file actions
41 lines (36 loc) · 1.59 KB
/
cypress.config.cjs
File metadata and controls
41 lines (36 loc) · 1.59 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
module.exports = {
e2e: {
baseUrl: process.env.CYPRESS_NC_URL || process.env.NC_URL || 'http://localhost:8080',
// api-security laeuft zuletzt: sendet absichtlich falsche Credentials,
// was NC Brute-Force-Schutz triggert und nachfolgende Login-Tests blockiert.
specPattern: [
'tests/e2e/rating-workflow.cy.js',
'tests/e2e/batch-selection.cy.js',
'tests/e2e/guest-gallery.cy.js',
'tests/e2e/loupe-navigation.cy.js',
'tests/e2e/navigation.cy.js',
'tests/e2e/pick-reject.cy.js',
'tests/e2e/comments.cy.js',
'tests/e2e/api-security.cy.js',
],
supportFile: false,
screenshotsFolder: 'tests/results/cypress/screenshots',
videosFolder: 'tests/results/cypress/videos',
downloadsFolder: 'tests/results/cypress/downloads',
viewportWidth: 1440,
viewportHeight: 900,
defaultCommandTimeout: 10000,
pageLoadTimeout: 30000,
requestTimeout: 15000,
chromeWebSecurity: false,
env: {
NC_URL: process.env.CYPRESS_NC_URL || process.env.NC_URL || 'http://localhost:8080',
NC_USER: process.env.CYPRESS_NC_USER || process.env.NC_USER || 'admin',
NC_PASS: process.env.CYPRESS_NC_PASS || process.env.NC_PASS || 'admin',
NC_USER_B: process.env.CYPRESS_NC_USER_B || process.env.NC_USER_B || 'test2',
NC_PASS_B: process.env.CYPRESS_NC_USER_B || process.env.NC_PASS_B || 'test2',
// Opt-in: Multi-User-Tests nur ausführen wenn explizit gesetzt
NC_MULTI_USER: process.env.CYPRESS_NC_MULTI_USER || process.env.NC_MULTI_USER || '',
},
},
}