Use cypress-terminal-report (#11226)

* Use cypress-terminal-report

This cypress plugin gives nice console logs about what is happening: I hope it
will help us debug mysteriously failing tests.

In its default config, it only logs for failing tests.

* another anti-morgan hack

* Disable collection of `console.debug`

* `ctr:info` is not real
This commit is contained in:
Richard van der Hoff 2023-07-11 16:10:13 +01:00 committed by GitHub
parent 8bba3bb1a9
commit 113b6301f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 58 additions and 1 deletions

View file

@ -19,6 +19,7 @@ limitations under the License.
import "@percy/cypress";
import "cypress-real-events";
import "@testing-library/cypress/add-commands";
import installLogsCollector from "cypress-terminal-report/src/installLogsCollector";
import "./config.json";
import "./homeserver";
@ -39,3 +40,20 @@ import "./network";
import "./composer";
import "./proxy";
import "./axe";
installLogsCollector({
// specify the types of logs to collect (and report to the node console at the end of the test)
collectTypes: [
"cons:log",
"cons:info",
"cons:warn",
"cons:error",
// "cons:debug",
"cy:log",
"cy:xhr",
"cy:fetch",
"cy:request",
"cy:intercept",
"cy:command",
],
});