cypress: integrate cypress-failed-log package.

To get a better log in case of error.

Change-Id: Id8f72c78cb8a80e30ba3012147caa8106e1e7ce2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90470
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai 2020-03-13 13:47:15 +01:00 committed by Tamás Zolnai
parent 52d9cde47c
commit dc15a4c398
5 changed files with 8 additions and 2 deletions

View file

@ -2,3 +2,4 @@ node_modules
cypress
package-lock.json
workdir
support/commands.js

View file

@ -3,6 +3,6 @@
"video" : false,
"pluginsFile" : "plugins/index.js",
"defaultCommandTimeout" : 6000,
"supportFile" : false,
"supportFile" : "support/index.js",
"ignoreTestFiles" : "*helper.js"
}

View file

@ -5,6 +5,7 @@
"license": "MPL-2.0",
"dependencies": {
"cypress": "4.1.0",
"cypress-failed-log": "2.6.2",
"eslint": "6.8.0",
"get-port-cli": "2.0.0",
"wait-on": "4.0.0"

View file

@ -4,7 +4,8 @@ var tasks = require('./tasks');
function plugin(on, config) {
on('task', {
copyFile: tasks.copyFile
copyFile: tasks.copyFile,
failed: require('cypress-failed-log/src/failed')()
});
return config;

View file

@ -0,0 +1,3 @@
/* global require */
require('cypress-failed-log');