2018-08-03 19:23:43 -04:00
|
|
|
// ***********************************************************
|
|
|
|
// This example support/index.js is processed and
|
|
|
|
// loaded automatically before your test files.
|
|
|
|
//
|
|
|
|
// This is a great place to put global configuration and
|
|
|
|
// behavior that modifies Cypress.
|
|
|
|
//
|
|
|
|
// You can change the location of this file or turn off
|
|
|
|
// automatically serving support files with the
|
|
|
|
// 'supportFile' configuration option.
|
|
|
|
//
|
|
|
|
// You can read more here:
|
|
|
|
// https://on.cypress.io/configuration
|
|
|
|
// ***********************************************************
|
2019-12-18 18:16:02 +02:00
|
|
|
import 'cypress-plugin-tab';
|
|
|
|
import 'cypress-file-upload';
|
|
|
|
import 'cypress-jest-adapter';
|
|
|
|
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
|
2018-08-03 19:23:43 -04:00
|
|
|
|
2019-12-18 18:16:02 +02:00
|
|
|
addMatchImageSnapshotCommand({
|
|
|
|
failureThreshold: 0.01,
|
|
|
|
failureThresholdType: 'percent',
|
2020-01-15 00:15:14 +02:00
|
|
|
customDiffConfig: { threshold: 0.09 },
|
2019-12-18 18:16:02 +02:00
|
|
|
capture: 'viewport',
|
|
|
|
});
|
2018-08-03 19:23:43 -04:00
|
|
|
|
2019-12-18 18:16:02 +02:00
|
|
|
import './commands';
|