diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-09-19 20:04:07 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-09-20 14:23:08 +0200 |
commit | 95fbcdebed842b4fcd3712ccd7fa80b70f4f35fb (patch) | |
tree | 02e493957eda407e7d6895ed3d650435636ea2bf | |
parent | f11ce477fbb935632d6434aa1ec1306728a993ca (diff) |
cypress: fix stopping test run in interactive test runner.
I reported the issue. Let's have a workaround until,
the bug fix is released.
Change-Id: I7d7719d311e0c0584b7d6e710286f28962d00a96
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103038
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r-- | cypress_test/integration_tests/common/helper.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js index 113ee79ee..f748b9bde 100644 --- a/cypress_test/integration_tests/common/helper.js +++ b/cypress_test/integration_tests/common/helper.js @@ -328,6 +328,10 @@ function beforeAll(fileName, subFolder, noFileCopy) { function afterAll(fileName) { cy.log('Waiting for closing the document - start.'); + //https://github.com/cypress-io/cypress/issues/8621 + if (Cypress.mocha.getRunner().stopped) + return; + if (Cypress.env('INTEGRATION') === 'nextcloud') { if (Cypress.env('WITHIN_IFRAME') === 'TRUE') { // Close the document |