cypress_test/integration_tests/mobile/writer/shape_properties_spec.js | 16 +++++----- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit 2a6dd836c352a1a60d1844a216cd66ed16c5d2e1 Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Mon Feb 24 14:07:30 2020 +0100 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Mon Feb 24 15:00:56 2020 +0100 cypress: mobile: update shape related tests. After: 11b7270acd930dd0ab61c96b1ab7d04a7d3e1d8b Default zoom changed -> shape is insert to different position -> geometry changed. Change-Id: Ibeed3a57b3b64962951f11054f6aa3410a0e673d Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89345 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/mobile/writer/shape_properties_spec.js b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js index 3b2b182ba..58d1acf38 100644 --- a/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js +++ b/cypress_test/integration_tests/mobile/writer/shape_properties_spec.js @@ -79,7 +79,7 @@ describe('Change shape properties via mobile wizard.', function() { it('Check default shape geometry.', function() { // Geometry cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path') - .should('have.attr', 'd', 'M 7800,10975 L 13792,16967 7800,16967 7800,10975 7800,10975 Z'); + .should('have.attr', 'd', 'M 1965,4810 L 7957,10802 1965,10802 1965,4810 1965,4810 Z'); // Fill color cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path') .should('have.attr', 'fill', 'rgb(114,159,207)'); @@ -98,7 +98,7 @@ describe('Change shape properties via mobile wizard.', function() { .type('{enter}'); cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path') - .should('have.attr', 'd', 'M 7800,10975 L 18470,16967 7800,16967 7800,10975 7800,10975 Z'); + .should('have.attr', 'd', 'M 1965,4810 L 12635,10802 1965,10802 1965,4810 1965,4810 Z'); }); it('Change shape height.', function() { @@ -114,7 +114,7 @@ describe('Change shape properties via mobile wizard.', function() { .type('{enter}'); cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path') - .should('have.attr', 'd', 'M 7800,10975 L 13792,24185 7800,24185 7800,10975 7800,10975 Z'); + .should('have.attr', 'd', 'M 1965,4810 L 7957,18020 1965,18020 1965,4810 1965,4810 Z'); }); it('Change size with keep ratio enabled.', function() { @@ -138,7 +138,7 @@ describe('Change shape properties via mobile wizard.', function() { .type('{enter}'); cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path') - .should('have.attr', 'd', 'M 7800,10975 L 21010,24185 7800,24185 7800,10975 7800,10975 Z'); + .should('have.attr', 'd', 'M 1965,4810 L 15175,18020 1965,18020 1965,4810 1965,4810 Z'); }); it('Vertical mirroring', function() { @@ -148,7 +148,7 @@ describe('Change shape properties via mobile wizard.', function() { .click(); cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path') - .should('have.attr', 'd', 'M 7800,16965 L 13792,10973 7800,10973 7800,16965 7800,16965 Z'); + .should('have.attr', 'd', 'M 1965,10800 L 7957,4808 1965,4808 1965,10800 1965,10800 Z'); }); it('Horizontal mirroring', function() { @@ -158,7 +158,7 @@ describe('Change shape properties via mobile wizard.', function() { .click(); cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path') - .should('have.attr', 'd', 'M 7800,10975 L 13792,16967 7800,16967 7800,10975 7800,10975 Z'); + .should('have.attr', 'd', 'M 1965,4810 L 7957,10802 1965,10802 1965,4810 1965,4810 Z'); }); it('Trigger moving backward / forward', function() { @@ -212,13 +212,13 @@ describe('Change shape properties via mobile wizard.', function() { .click(); cy.get('.ui-combobox-text') - .contains('Fine Dotted') + .contains('Dashed') .click(); triggerNewSVG(); cy.get('.leaflet-pane.leaflet-overlay-pane svg g svg g g g path[fill="none"]') - .should('have.length.greaterThan', 20); + .should('have.length.greaterThan', 12); }); it('Change line width', function() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits