2020-11-21 19:01:31 +01:00
|
|
|
/**
|
|
|
|
* This file is processed and
|
|
|
|
* loaded automatically before the test files.
|
|
|
|
*
|
|
|
|
* This is a great place to put global configuration and
|
|
|
|
* behavior that modifies Cypress.
|
|
|
|
*/
|
|
|
|
|
2021-04-04 14:10:26 +02:00
|
|
|
import '@cypress/code-coverage/support';
|
2023-08-08 21:17:09 +02:00
|
|
|
import installLogsCollector from 'cypress-terminal-report/src/installLogsCollector';
|
2023-12-22 21:15:35 +01:00
|
|
|
import 'cypress-plugin-tab';
|
2023-08-08 21:17:09 +02:00
|
|
|
|
|
|
|
installLogsCollector();
|
2021-04-04 14:10:26 +02:00
|
|
|
|
2020-11-21 19:01:31 +01:00
|
|
|
/**
|
|
|
|
* File with the helpful commands
|
|
|
|
*/
|
|
|
|
import './commands';
|
|
|
|
|
2023-08-19 06:53:42 +02:00
|
|
|
/**
|
|
|
|
* File with custom assertions
|
|
|
|
*/
|
|
|
|
import './e2e';
|
|
|
|
|
2023-05-12 19:50:48 +02:00
|
|
|
import chaiSubset from 'chai-subset';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* "containSubset" object properties matcher
|
|
|
|
*/
|
|
|
|
chai.use(chaiSubset);
|
|
|
|
|
2020-11-21 19:01:31 +01:00
|
|
|
/**
|
|
|
|
* Before-each hook for the cypress tests
|
|
|
|
*/
|
|
|
|
beforeEach((): void => {
|
|
|
|
cy.visit('test/cypress/fixtures/test.html');
|
|
|
|
});
|