mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
b61927acad
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
37 lines
774 B
TypeScript
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;
|
|
},
|
|
},
|
|
});
|