cypress_test/integration_tests/common/helper.js | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 5b6c0b8e1c4df4120613cc0356485c03bd8c3b2b Author: Tamás Zolnai <[email protected]> AuthorDate: Fri Sep 18 13:00:31 2020 +0200 Commit: Tamás Zolnai <[email protected]> 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 <[email protected]> Reviewed-by: Tamás Zolnai <[email protected]> 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) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
