2022-06-01 22:58:06 +03:00
|
|
|
const { defineConfig } = require('cypress')
|
|
|
|
|
|
|
|
module.exports = defineConfig({
|
2022-06-08 15:02:09 +03:00
|
|
|
projectId: 'hx9gqy',
|
|
|
|
viewportWidth: 1280,
|
|
|
|
viewportHeight: 900,
|
|
|
|
e2e: {
|
|
|
|
setupNodeEvents(on, config) {
|
2022-06-25 01:10:50 +03:00
|
|
|
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 }))
|
2022-06-08 15:02:09 +03:00
|
|
|
},
|
2022-06-25 01:10:50 +03:00
|
|
|
|
2022-06-08 15:02:09 +03:00
|
|
|
baseUrl: 'http://localhost:8081/index.php/',
|
|
|
|
experimentalSessionAndOrigin: true,
|
|
|
|
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
|
|
|
|
},
|
2022-08-31 11:22:36 +03:00
|
|
|
retries: {
|
2022-09-26 17:58:03 +03:00
|
|
|
runMode: 2,
|
2022-08-31 11:22:36 +03:00
|
|
|
// do not retry in `cypress open`
|
2022-09-26 17:58:03 +03:00
|
|
|
openMode: 0,
|
2022-08-31 11:22:36 +03:00
|
|
|
},
|
2022-11-29 13:53:41 +03:00
|
|
|
"numTestsKeptInMemory": 5,
|
2022-06-01 22:58:06 +03:00
|
|
|
})
|