2023-01-27 20:11:21 +03:00
|
|
|
import { defineConfig } from 'cypress';
|
|
|
|
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';
|
2023-03-14 22:03:11 +03:00
|
|
|
import { initPlugin as initSnapshotPlugin } from 'cypress-plugin-snapshots/plugin';
|
|
|
|
import * as customTasks from './src/support/tasks';
|
2023-01-27 20:11:21 +03:00
|
|
|
|
2023-02-28 22:41:18 +03:00
|
|
|
const nxConfig = nxE2EPreset(__filename);
|
2023-02-07 19:14:44 +03:00
|
|
|
|
2023-01-27 20:11:21 +03:00
|
|
|
export default defineConfig({
|
2023-02-07 19:14:44 +03:00
|
|
|
viewportWidth: 1440,
|
|
|
|
viewportHeight: 900,
|
|
|
|
|
|
|
|
retries: {
|
|
|
|
openMode: 0,
|
|
|
|
// Allows for one automatic retry per test
|
|
|
|
// see: https://docs.cypress.io/guides/guides/test-retries#How-It-Works
|
|
|
|
runMode: 1,
|
|
|
|
},
|
|
|
|
|
|
|
|
projectId: '672jmv',
|
|
|
|
|
|
|
|
e2e: {
|
|
|
|
...nxConfig,
|
|
|
|
|
|
|
|
video: false,
|
2023-03-14 22:03:11 +03:00
|
|
|
|
|
|
|
setupNodeEvents(on, config) {
|
|
|
|
on('task', {
|
|
|
|
...customTasks,
|
|
|
|
});
|
|
|
|
|
|
|
|
initSnapshotPlugin(on, config);
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
2023-02-07 19:14:44 +03:00
|
|
|
},
|
2023-01-27 20:11:21 +03:00
|
|
|
});
|