[Libreoffice-commits] online.git: cypress_test/plugins

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 30 13:27:06 UTC 2020


 cypress_test/plugins/index.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit c99f2232b498843e58b1e1f17dcf58e52fa9a953
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu Jul 30 12:42:39 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Thu Jul 30 15:26:47 2020 +0200

    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 at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/cypress_test/plugins/index.js b/cypress_test/plugins/index.js
index b15e876c6..1da431a2d 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') {


More information about the Libreoffice-commits mailing list