Files
ops-Gazelle/tests/cypress/support/e2e.js
2023-04-04 18:55:57 +02:00

32 lines
892 B
JavaScript

// ***********************************************************
// This example support/e2e.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
// ***********************************************************
require('cypress-terminal-report/src/installLogsCollector')({
xhr: {
printHeaderData: true,
printRequestData: true
}
});
import './commands'
Cypress.on('fail', (err, runnable) => {
/**
* add DOM html to error message
* @type {string}
*/
err.message += `${'\n\n' + Cypress.$('html').html()}`;
throw err;
});