Skip to content

Commit

Permalink
migrate: cypress@10
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Aug 30, 2022
1 parent b2aa1f6 commit 1aa9f52
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 21 deletions.
37 changes: 37 additions & 0 deletions synpress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const { defineConfig } = require('cypress');
const setupNodeEvents = require('./plugins/index');
const helpers = require('./helpers');

const fixturesFolder = `${helpers.getSynpressPath()}/fixtures`;
const supportFile = `${helpers.getSynpressPath()}/support/index.js`;

module.exports = defineConfig({
userAgent: 'synpress',
retries: {
runMode: 0,
openMode: 0,
},
fixturesFolder,
screenshotsFolder: 'tests/e2e/screenshots',
videosFolder: 'tests/e2e/videos',
chromeWebSecurity: true,
viewportWidth: 1366,
viewportHeight: 768,
env: {
coverage: false,
},
defaultCommandTimeout: 30000,
pageLoadTimeout: 30000,
requestTimeout: 30000,
e2e: {
setupNodeEvents,
baseUrl: 'http://localhost:3000',
specPattern: 'tests/e2e/specs/**/*.{js,jsx,ts,tsx}',
supportFile,
},
component: {
setupNodeEvents,
specPattern: './**/*spec.{js,jsx,ts,tsx}',
supportFile,
},
});
21 changes: 0 additions & 21 deletions synpress.json

This file was deleted.

0 comments on commit 1aa9f52

Please sign in to comment.