graphql-engine/frontend/apps/console-ee-e2e/cypress.config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
774 B
TypeScript
Raw Normal View History

import { defineConfig } from 'cypress';
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';
import { initPlugin as initSnapshotPlugin } from 'cypress-plugin-snapshots/plugin';
import * as customTasks from './src/support/tasks';
const nxConfig = nxE2EPreset(__filename);
export default defineConfig({
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,
setupNodeEvents(on, config) {
on('task', {
...customTasks,
});
initSnapshotPlugin(on, config);
return config;
},
},
});