summaryrefslogtreecommitdiffstats
path: root/cypress.config.js
blob: 32564744b3a51934d06b9f51570adbaf86b7f79b (plain)
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
const { defineConfig } = require('cypress')
const browserify = require('@cypress/browserify-preprocessor')

module.exports = defineConfig({
	projectId: '7mqhfh',

	viewportWidth: 1280,
	viewportHeight: 720,
	defaultCommandTimeout: 6000,
	retries: 1,

	env: {
		failSilently: false,
		type: 'actual',
	},

	screenshotsFolder: 'cypress/snapshots/actual',
	trashAssetsBeforeRuns: true,

	e2e: {
		baseUrl: 'http://localhost:8082/index.php',

		setupNodeEvents(on, config) {
			// Fix browserslist extend https://github.com/cypress-io/cypress/issues/2983#issuecomment-570616682
			on('file:preprocessor', browserify())
		},
	},
})