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

New commits:
commit c99f2232b498843e58b1e1f17dcf58e52fa9a953
Author:     Tamás Zolnai <[email protected]>
AuthorDate: Thu Jul 30 12:42:39 2020 +0200
Commit:     Tamás Zolnai <[email protected]>
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 <[email protected]>
    Reviewed-by: Tamás Zolnai <[email protected]>

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') {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to