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:
parent
8bba3bb1a9
commit
113b6301f8
6 changed files with 58 additions and 1 deletions
|
@ -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",
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue