summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2022-02-07 14:08:48 +0300
committerMert Tümer <merttumer@outlook.com>2022-02-07 18:18:29 +0300
commit924e22635af5285bcdada9a4146153368561eb70 (patch)
treec2ac94ff9ea2d9d3aeb4e0d68bfb0973f5258962 /cypress_test/integration_tests
parentmobile: show go back btn before docload (diff)
downloadonline-924e22635af5285bcdada9a4146153368561eb70.tar.gz
online-924e22635af5285bcdada9a4146153368561eb70.zip
new mobile-back button cypress modifications
Signed-off-by: Mert Tumer <mert.tumer@collabora.com> Change-Id: I3e67bdc84d190edf2819b88dfe7d7630c7b89aba
Diffstat (limited to 'cypress_test/integration_tests')
-rw-r--r--cypress_test/integration_tests/common/helper.js4
-rw-r--r--cypress_test/integration_tests/common/mobile_helper.js16
-rw-r--r--cypress_test/integration_tests/mobile/calc/nextcloud_spec.js2
-rw-r--r--cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js2
-rw-r--r--cypress_test/integration_tests/mobile/impress/nextcloud_spec.js2
-rw-r--r--cypress_test/integration_tests/mobile/writer/nextcloud_spec.js2
6 files changed, 14 insertions, 14 deletions
diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js
index 2023123a1d..aa2c03a532 100644
--- a/cypress_test/integration_tests/common/helper.js
+++ b/cypress_test/integration_tests/common/helper.js
@@ -551,13 +551,13 @@ function closeDocument(fileName, testState) {
if (Cypress.env('IFRAME_LEVEL') === '2') {
// Close the document, with the close button.
doIfOnMobile(function() {
- cy.get('#tb_actionbar_item_closemobile')
+ cy.get('#toolbar-mobile-back')
.click();
cy.get('#mobile-edit-button')
.should('be.visible');
- cy.get('#tb_actionbar_item_closemobile')
+ cy.get('#toolbar-mobile-back')
.then(function(item) {
cy.wrap(item)
.click();
diff --git a/cypress_test/integration_tests/common/mobile_helper.js b/cypress_test/integration_tests/common/mobile_helper.js
index 63600064c9..3f7872e6e5 100644
--- a/cypress_test/integration_tests/common/mobile_helper.js
+++ b/cypress_test/integration_tests/common/mobile_helper.js
@@ -20,11 +20,11 @@ function enableEditingMobile() {
.then(function(button) {
if (button.css('display') !== 'none') {
- cy.get('#tb_actionbar_item_closemobile .editmode')
- .should('not.exist');
+ cy.get('#toolbar-mobile-back')
+ .should('not.have.class', 'editmode-on');
- cy.get('#tb_actionbar_item_closemobile .closemobile')
- .should('be.visible');
+ cy.get('#toolbar-mobile-back')
+ .should('have.class', 'editmode-off');
cy.get('#mobile-edit-button')
.click();
@@ -32,11 +32,11 @@ function enableEditingMobile() {
});
- cy.get('#tb_actionbar_item_closemobile .editmode')
- .should('be.visible');
+ cy.get('#toolbar-mobile-back')
+ .should('have.class', 'editmode-on');
- cy.get('#tb_actionbar_item_closemobile .closemobile')
- .should('not.exist');
+ cy.get('#toolbar-mobile-back')
+ .should('not.have.class', 'editmode-off');
// Wait until all UI update is finished.
cy.get('#toolbar-down')
diff --git a/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js b/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js
index 8b3612d77d..7761314eff 100644
--- a/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js
+++ b/cypress_test/integration_tests/mobile/calc/nextcloud_spec.js
@@ -38,7 +38,7 @@ describe('Nextcloud specific tests.', function() {
cy.get('#mobile-edit-button')
.should('be.visible');
- cy.get('#tb_actionbar_item_closemobile')
+ cy.get('#toolbar-mobile-back')
.then(function(item) {
cy.wrap(item)
.click();
diff --git a/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js b/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js
index dee4d55041..0f28f9ab30 100644
--- a/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js
+++ b/cypress_test/integration_tests/mobile/impress/insertion_wizard_spec.js
@@ -511,7 +511,7 @@ describe('Impress insertion wizard.', function() {
impressHelper.assertNumberOfSlidePreviews(2);
if (Cypress.env('INTEGRATION') !== 'nextcloud') {
- cy.get('#tb_actionbar_item_closemobile')
+ cy.get('#toolbar-mobile-back')
.click();
cy.get('.leaflet-control-zoom-in')
diff --git a/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js b/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js
index 11b014ee3a..67855cc1de 100644
--- a/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js
+++ b/cypress_test/integration_tests/mobile/impress/nextcloud_spec.js
@@ -37,7 +37,7 @@ describe('Nextcloud specific tests.', function() {
cy.get('#mobile-edit-button')
.should('be.visible');
- cy.get('#tb_actionbar_item_closemobile')
+ cy.get('#toolbar-mobile-back')
.then(function(item) {
cy.wrap(item)
.click();
diff --git a/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js b/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js
index 80244d944d..32ffa2f0e0 100644
--- a/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js
+++ b/cypress_test/integration_tests/mobile/writer/nextcloud_spec.js
@@ -36,7 +36,7 @@ describe('Nextcloud specific tests.', function() {
cy.get('#mobile-edit-button')
.should('be.visible');
- cy.get('#tb_actionbar_item_closemobile')
+ cy.get('##toolbar-mobile-back')
.then(function(item) {
cy.wrap(item)
.click();