-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
41 lines (40 loc) · 1019 Bytes
/
cypress.config.js
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
import { defineConfig } from 'cypress';
import plugins from './cypress/plugins/index.js';
export default defineConfig({
viewportWidth: 1200,
viewportHeight: 900,
video: false,
numTestsKeptInMemory: 20,
defaultCommandTimeout: 10000,
retries: {
runMode: 2,
openMode: 0
},
env: {
'@apostrophecms-pro/cypress-tools': {
assembly: true,
apiKey: 'cypressAPIKey',
mongoURI: true,
dbName: 'test-t0i63fmpmk34ylpu1b31ws6p',
aposRoot: './sites',
profiles: {
'site-demo': {
dbName: 'test-snfxk8h1grlrrkldsdntc1hh',
baseUrl: 'http://site-demo.localhost:3000'
},
dashboard: {
dbName: 'test-dashboard',
aposRoot: './dashboard',
baseUrl: 'http://dashboard.localhost:3000'
}
}
}
},
e2e: {
baseUrl: 'http://site-default.localhost:3000',
specPattern: 'cypress/tests/**/*.cy.{js,vue,ts}',
setupNodeEvents(on, config) {
return plugins(on, config);
}
}
});