diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-07-30 12:42:39 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-07-30 15:26:47 +0200 |
commit | c99f2232b498843e58b1e1f17dcf58e52fa9a953 (patch) | |
tree | 2ab4599c85d760e1b39d4b9f3654d81b28a01b3b /cypress_test/plugins | |
parent | cypress: update run_iteratively.sh script to work with multi-user tests. (diff) | |
download | online-c99f2232b498843e58b1e1f17dcf58e52fa9a953.tar.gz online-c99f2232b498843e58b1e1f17dcf58e52fa9a953.zip |
cypress: introduce ENABLE_VIDEO_REC flag.
We can enable video recording with this flag,
during a headless test run, so we can see what
happend on the UI.
Change-Id: I4558563a3de71742d8d6b1ca67f0c518d543afc7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99787
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'cypress_test/plugins')
-rw-r--r-- | cypress_test/plugins/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cypress_test/plugins/index.js b/cypress_test/plugins/index.js index b15e876c63..1da431a2d7 100644 --- a/cypress_test/plugins/index.js +++ b/cypress_test/plugins/index.js @@ -13,6 +13,10 @@ function plugin(on, config) { failed: require('cypress-failed-log/src/failed')() }); + if (process.env.ENABLE_VIDEO_REC) { + config.video = true; + } + if (process.env.ENABLE_CONSOLE_LOG) { require('cypress-log-to-output').install(on, function(type, event) { if (event.level === 'error' || event.type === 'error') { |