[Libreoffice-commits] online.git: cypress_test/integration_tests
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 18 12:12:45 UTC 2020
cypress_test/integration_tests/common/helper.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 5b6c0b8e1c4df4120613cc0356485c03bd8c3b2b
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Sep 18 13:00:31 2020 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Sep 18 14:12:26 2020 +0200
cypress: NC: update afterAll method for mobile.
Newly close button does not actually close the document,
but steps back to read only mode. So we need to push it
twice.
Change-Id: Ic38f1e658396d9afe49496cfb75aa68df1c4623f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102997
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js
index 38edadbf2..113ee79ee 100644
--- a/cypress_test/integration_tests/common/helper.js
+++ b/cypress_test/integration_tests/common/helper.js
@@ -332,6 +332,12 @@ function afterAll(fileName) {
if (Cypress.env('WITHIN_IFRAME') === 'TRUE') {
// Close the document
doIfOnMobile(function() {
+ cy.get('#tb_actionbar_item_closemobile')
+ .click();
+
+ cy.get('#mobile-edit-button')
+ .should('be.visible');
+
cy.get('#tb_actionbar_item_closemobile')
.then(function(item) {
cy.wrap(item)
More information about the Libreoffice-commits
mailing list