mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
32 lines
892 B
JavaScript
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;
|
|
});
|