forked from nextcloud/text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.js
43 lines (36 loc) · 1.02 KB
/
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
42
43
const { defineConfig } = require('cypress')
const cypressSplit = require('cypress-split')
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
// IMPORTANT: return the config object
return config
},
},
})
module.exports = defineConfig({
projectId: 'hx9gqy',
viewportWidth: 1280,
viewportHeight: 900,
e2e: {
setupNodeEvents(on, config) {
cypressSplit(on, config)
const browserify = require('@cypress/browserify-preprocessor')
const webpack = require('@cypress/webpack-preprocessor')
const webpackOptions = require('@nextcloud/webpack-vue-config')
webpackOptions.module.rules.push({ test: /\.md/, type: 'asset/source' })
on('file:preprocessor', browserify())
on('file:preprocessor', webpack({ webpackOptions }))
return config
},
baseUrl: 'http://localhost:8081/index.php/',
experimentalSessionAndOrigin: true,
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
retries: {
runMode: 2,
// do not retry in `cypress open`
openMode: 0,
},
"numTestsKeptInMemory": 5,
})