Skip to content
Snippets Groups Projects
Unverified Commit eb43ebfb authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

hide terminal-report logs from console (#46891)

* hide terminal-report logs from console

* disable html output from testing-library-dom

* revert failing code
parent e0a0734c
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,9 @@ const defaultConfig = {
// cypress-terminal-report
if (isCI) {
installLogsPrinter(on);
installLogsPrinter(on, {
printLogsToConsole: "never",
});
}
/********************************************************************
......
......@@ -3,12 +3,29 @@ registerCypressGrep();
import "@cypress/skip-test/support";
import "@testing-library/cypress/add-commands";
import { configure } from "@testing-library/cypress";
import "cypress-real-events/support";
import addContext from "mochawesome/addContext";
import "./commands";
const isCI = Cypress.env("CI");
// remove default html output on test failure
configure({
getElementError: (message, container) => {
// to re-enable the default stack trace, uncomment
// import { prettyDOM } from "@testing-library/dom";
// const error = new Error(
// [message, prettyDOM(container)].filter(Boolean).join('\n\n'),
// )
const error = new Error(message);
error.name = "TestingLibraryElementError";
error.stack = null;
return error;
},
});
Cypress.on("uncaught:exception", (err, runnable) => false);
Cypress.on("test:before:run", () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment