diff options
-rw-r--r-- | cypress_test/integration_tests/common/mobile_helper.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/cypress_test/integration_tests/common/mobile_helper.js b/cypress_test/integration_tests/common/mobile_helper.js index 9875b29d9..1396ef6ca 100644 --- a/cypress_test/integration_tests/common/mobile_helper.js +++ b/cypress_test/integration_tests/common/mobile_helper.js @@ -9,13 +9,24 @@ function enableEditingMobile() { cy.get('#mobile-edit-button') .then(function(button) { if (button.css('display') !== 'none') { + + cy.get('#tb_actionbar_item_closemobile .editmode') + .should('not.exist'); + + cy.get('#tb_actionbar_item_closemobile .closemobile') + .should('be.visible'); + cy.get('#mobile-edit-button') .click(); } }); - cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled'); + + cy.get('#tb_actionbar_item_closemobile .editmode') + .should('be.visible'); + + cy.get('#tb_actionbar_item_closemobile .closemobile') + .should('not.exist'); // Wait until all UI update is finished. cy.get('#toolbar-down') |