cypress_test/integration_tests/common/helper.js | 3 +++ cypress_test/integration_tests/mobile/calc/apply_font_spec.js | 4 ---- cypress_test/integration_tests/mobile/calc/focus_spec.js | 6 ------ cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js | 4 ---- cypress_test/integration_tests/mobile/writer/focus_spec.js | 8 -------- cypress_test/integration_tests/mobile/writer/insert_field_spec.js | 1 - cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js | 1 - cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js | 3 --- cypress_test/integration_tests/mobile/writer/table_properties_spec.js | 4 ---- 9 files changed, 3 insertions(+), 31 deletions(-)
New commits: commit 407f830f50b900f7f6c384f73de9ad6cff15deaf Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Wed Mar 18 11:41:16 2020 +0100 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Wed Mar 18 20:45:36 2020 +0100 cypress: mobile: add also an indicator to enableEditingMobile. Which indicates that the application stepped into edit mode. Change-Id: I196851c618fd3b6c670b26184e6bbca8050f2f5a Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90711 Tested-by: Tamás Zolnai <tamas.zol...@collabora.com> Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/cypress_test/integration_tests/common/helper.js b/cypress_test/integration_tests/common/helper.js index 664e5f202..d1789530d 100644 --- a/cypress_test/integration_tests/common/helper.js +++ b/cypress_test/integration_tests/common/helper.js @@ -55,6 +55,9 @@ function enableEditingMobile() { .click(); } }); + + cy.get('#tb_actionbar_item_mobile_wizard') + .should('not.have.class', 'disabled'); } // Assert that NO keyboard input is accepted (i.e. keyboard should be HIDDEN). diff --git a/cypress_test/integration_tests/mobile/calc/apply_font_spec.js b/cypress_test/integration_tests/mobile/calc/apply_font_spec.js index 2a669f70a..c829890da 100644 --- a/cypress_test/integration_tests/mobile/calc/apply_font_spec.js +++ b/cypress_test/integration_tests/mobile/calc/apply_font_spec.js @@ -10,10 +10,6 @@ describe('Apply font changes.', function() { // Click on edit button helper.enableEditingMobile(); - // Button should be enabled now - cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled'); - calcHelper.clickOnFirstCell(); cy.get('.leaflet-marker-icon') diff --git a/cypress_test/integration_tests/mobile/calc/focus_spec.js b/cypress_test/integration_tests/mobile/calc/focus_spec.js index 2c23bc1a5..0ea2b3b77 100644 --- a/cypress_test/integration_tests/mobile/calc/focus_spec.js +++ b/cypress_test/integration_tests/mobile/calc/focus_spec.js @@ -16,9 +16,6 @@ describe('Calc focus tests', function() { // Click on edit button helper.enableEditingMobile(); - cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled'); - // Body has the focus -> can't type in the document cy.document().its('activeElement.tagName') .should('be.eq', 'BODY'); @@ -52,9 +49,6 @@ describe('Calc focus tests', function() { // Click on edit button helper.enableEditingMobile(); - cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled'); - // Body has the focus -> can't type in the document cy.document().its('activeElement.tagName') .should('be.eq', 'BODY'); diff --git a/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js b/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js index 1b5d1637a..1f045440d 100644 --- a/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js +++ b/cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js @@ -10,10 +10,6 @@ describe('Calc insertion wizard.', function() { // Click on edit button helper.enableEditingMobile(); - // Button should be enabled now - cy.get('#tb_actionbar_item_insertion_mobile_wizard') - .should('not.have.class', 'disabled'); - calcHelper.clickOnFirstCell(); cy.get('.leaflet-marker-icon') diff --git a/cypress_test/integration_tests/mobile/writer/focus_spec.js b/cypress_test/integration_tests/mobile/writer/focus_spec.js index 4e4d50b6d..f1efae3ee 100644 --- a/cypress_test/integration_tests/mobile/writer/focus_spec.js +++ b/cypress_test/integration_tests/mobile/writer/focus_spec.js @@ -15,9 +15,6 @@ describe('Focus tests', function() { // Click on edit button helper.enableEditingMobile(); - cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled'); - // Body has the focus -> can't type in the document cy.document().its('activeElement.tagName') .should('be.eq', 'BODY'); @@ -37,7 +34,6 @@ describe('Focus tests', function() { // Open comment insertion dialog cy.get('#tb_actionbar_item_insertcomment') - .should('not.have.class', 'disabled') .click(); cy.get('.loleaflet-annotation-table') @@ -95,7 +91,6 @@ describe('Focus tests', function() { // Open mobile wizard cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled') .click(); cy.get('#mobile-wizard-content') @@ -128,7 +123,6 @@ describe('Focus tests', function() { // Open insertion mobile wizard cy.get('#tb_actionbar_item_insertion_mobile_wizard') - .should('not.have.class', 'disabled') .click(); cy.get('#mobile-wizard-content') @@ -157,7 +151,6 @@ describe('Focus tests', function() { // Open insertion mobile wizard cy.get('#tb_actionbar_item_insertion_mobile_wizard') - .should('not.have.class', 'disabled') .click(); cy.get('#mobile-wizard-content') @@ -250,7 +243,6 @@ describe('Focus tests', function() { // Open mobile wizard cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled') .click(); cy.get('#mobile-wizard-content') diff --git a/cypress_test/integration_tests/mobile/writer/insert_field_spec.js b/cypress_test/integration_tests/mobile/writer/insert_field_spec.js index 541015653..baba5e1ce 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_field_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_field_spec.js @@ -12,7 +12,6 @@ describe('Insert fields via insertion wizard.', function() { // Open insertion wizard cy.get('#tb_actionbar_item_insertion_mobile_wizard') - .should('not.have.class', 'disabled') .click(); cy.get('#mobile-wizard') .should('be.visible'); diff --git a/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js b/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js index 4d8fcc9ee..85733799f 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_formatting_mark_spec.js @@ -12,7 +12,6 @@ describe('Insert formatting mark via insertion wizard.', function() { // Open insertion wizard cy.get('#tb_actionbar_item_insertion_mobile_wizard') - .should('not.have.class', 'disabled') .click(); cy.get('#mobile-wizard') .should('be.visible'); diff --git a/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js b/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js index be154ccf2..15f9c4ab0 100644 --- a/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js +++ b/cypress_test/integration_tests/mobile/writer/mobile_wizard_state_spec.js @@ -17,7 +17,6 @@ describe('Mobile wizard state tests', function() { // Click on mobile wizard toolbar item cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled') .click(); // Mobile wizard is opened and it has any content @@ -57,7 +56,6 @@ describe('Mobile wizard state tests', function() { // Click on mobile wizard toolbar item cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled') .click(); // Mobile wizard is opened and it has any content @@ -93,7 +91,6 @@ describe('Mobile wizard state tests', function() { // Click on mobile wizard toolbar item cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled') .click(); // Mobile wizard is opened and it has any content diff --git a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js index 8bc9b0d6d..d199177e6 100644 --- a/cypress_test/integration_tests/mobile/writer/table_properties_spec.js +++ b/cypress_test/integration_tests/mobile/writer/table_properties_spec.js @@ -17,10 +17,6 @@ describe('Change table properties / layout via mobile wizard.', function() { // Click on edit button helper.enableEditingMobile(); - - // Open insertion wizard - cy.get('#tb_actionbar_item_mobile_wizard') - .should('not.have.class', 'disabled'); } function openTablePanel() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits