cypress_test/integration_tests/mobile/calc/calc_mobile_helper.js | 8 +--- cypress_test/integration_tests/mobile/calc/spellchecking_spec.js | 18 ++-------- 2 files changed, 6 insertions(+), 20 deletions(-)
New commits: commit 14be173ccd74766177a9d27cfdb87ad20c572f8e Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Mon Jun 22 13:10:49 2020 +0200 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Mon Jun 22 15:30:46 2020 +0200 cypress: stabilize calc/spellchecking_spec.js test. Change-Id: I8f49e305c32cf24f167890e8e9d8088440bb788e Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96856 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/cypress_test/integration_tests/mobile/calc/calc_mobile_helper.js b/cypress_test/integration_tests/mobile/calc/calc_mobile_helper.js index c34af53cd..8e3298901 100644 --- a/cypress_test/integration_tests/mobile/calc/calc_mobile_helper.js +++ b/cypress_test/integration_tests/mobile/calc/calc_mobile_helper.js @@ -37,12 +37,8 @@ function selectAllMobile(removeSelection = true) { cy.get('#spreadsheet-header-corner') .click(); - cy.get('.spreadsheet-cell-resize-marker:nth-of-type(2)') - .should('not.be.visible'); - - cy.get('.spreadsheet-cell-resize-marker:nth-of-type(1)') - .invoke('attr', 'style') - .should('contain', '(-9px, -8px,'); + cy.get('.spreadsheet-cell-resize-marker') + .should('be.visible'); cy.get('input#addressInput') .should('have.prop', 'value', 'A1:AMJ1048576'); diff --git a/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js b/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js index e19e9a07e..79ed12d33 100644 --- a/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js +++ b/cypress_test/integration_tests/mobile/calc/spellchecking_spec.js @@ -60,16 +60,6 @@ describe('Calc spell checking menu.', function() { cy.contains('.context-menu-link', 'hello') .click(); - // Click outside of the cell - cy.get('.leaflet-marker-icon') - .then(function(items) { - expect(items).to.have.length(2); - var XPos = items[0].getBoundingClientRect().right; - var YPos = items[0].getBoundingClientRect().bottom + 10; - cy.get('body') - .click(XPos, YPos); - }); - calcMobileHelper.selectAllMobile(); cy.get('#copy-paste-container table td') @@ -106,9 +96,9 @@ describe('Calc spell checking menu.', function() { .click(); // Click outside of the cell - cy.get('.leaflet-marker-icon') + cy.get('.leaflet-selection-marker-end') .then(function(items) { - expect(items).to.have.length(2); + expect(items).to.have.length(1); var XPos = items[0].getBoundingClientRect().right; var YPos = items[0].getBoundingClientRect().bottom + 10; cy.get('body') @@ -129,9 +119,9 @@ describe('Calc spell checking menu.', function() { .click(); // Click outside of the cell - cy.get('.leaflet-marker-icon') + cy.get('.leaflet-selection-marker-end') .then(function(items) { - expect(items).to.have.length(2); + expect(items).to.have.length(1); var XPos = items[0].getBoundingClientRect().right; var YPos = items[0].getBoundingClientRect().bottom + 10; cy.get('body') _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits