-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathcypress.config.ts
35 lines (34 loc) · 1.16 KB
/
cypress.config.ts
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
/* eslint-disable @typescript-eslint/no-var-requires */
import { defineConfig } from 'cypress';
const { initPlugin } = require('cypress-plugin-snapshots/plugin');
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
initPlugin(on, config);
return config;
},
baseUrl: 'http://localhost:4200/#/',
fixturesFolder: false,
defaultCommandTimeout: 300000,
supportFile: './projects/phoenix-app/cypress/support/e2e.ts',
screenshotsFolder: './projects/phoenix-app/cypress/screenshots',
videosFolder: './projects/phoenix-app/cypress/videos',
downloadsFolder: './projects/phoenix-app/cypress/downloads',
specPattern: './projects/phoenix-app/cypress/e2e/**/*.test.{js,ts}',
excludeSpecPattern: ['**/__snapshots__/*', '**/__image_snapshots__/*'],
env: {
'cypress-plugin-snapshots': {
screenshotConfig: {
// See https://docs.cypress.io/api/commands/screenshot.html#Arguments
blackout: [],
capture: 'fullPage',
clip: null,
disableTimersAndAnimations: true,
log: true,
scale: false,
timeout: 30000,
},
},
},
},
});