graphql-engine/frontend/apps/console-ee-e2e/cypress.config.ts
Daniele Cammareri b61927acad console: add dynamic db routing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8295
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 36ae48f6e3366129a6f375728c21bf16555c72e1
2023-03-14 19:04:39 +00:00

37 lines
774 B
TypeScript

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;
},
},
});