diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-08-11 20:55:44 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2023-08-12 10:34:15 +0200 |
commit | b85eb1b03fdccbeff2367ab8c92af6f99051f4ba (patch) | |
tree | ad71ab87b0d8578d543e46a3bd8c8fe2b750c742 /cypress_test/integration_tests/desktop | |
parent | FIX #7037: JSDialog: label vs textarea vs input field inconsistent paddings (diff) | |
download | online-b85eb1b03fdccbeff2367ab8c92af6f99051f4ba.tar.gz online-b85eb1b03fdccbeff2367ab8c92af6f99051f4ba.zip |
cypress: fix svg text-decoration detection
this was changed in the core:
commit 0a549b2c9595cd076e3b503b67df93bff380885a
svg: export text decoration for text run not paragraph
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8906ee07c7ff88c9dcdbebe73d2c620e797a8b3a
Diffstat (limited to 'cypress_test/integration_tests/desktop')
-rw-r--r-- | cypress_test/integration_tests/desktop/impress/sidebar_spec.js | 2 | ||||
-rw-r--r-- | cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/cypress_test/integration_tests/desktop/impress/sidebar_spec.js b/cypress_test/integration_tests/desktop/impress/sidebar_spec.js index 74eb7644ae..f7a69c0463 100644 --- a/cypress_test/integration_tests/desktop/impress/sidebar_spec.js +++ b/cypress_test/integration_tests/desktop/impress/sidebar_spec.js @@ -47,7 +47,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Sidebar Tests', function() cy.cGet('.modalpopup .jsdialog-container').should('be.visible'); cy.cGet('#single').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'text-decoration', 'underline'); }); }); diff --git a/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js b/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js index 0722d742f7..bba7402dd6 100644 --- a/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js @@ -30,7 +30,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct impressHelper.triggerNewSVGForShapeInTheCenter(); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'font-weight', '700'); }); @@ -39,7 +39,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct impressHelper.triggerNewSVGForShapeInTheCenter(); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'font-style', 'italic'); }); @@ -49,7 +49,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct impressHelper.triggerNewSVGForShapeInTheCenter(); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'text-decoration', 'underline'); }); @@ -58,7 +58,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct impressHelper.triggerNewSVGForShapeInTheCenter(); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'text-decoration', 'line-through'); }); @@ -95,7 +95,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct impressHelper.triggerNewSVGForShapeInTheCenter(); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .SVGTextShape .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .SVGTextShape .TextParagraph .TextPosition tspan') .should('have.attr', 'font-family', 'Liberation Mono'); }); @@ -107,7 +107,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct impressHelper.triggerNewSVGForShapeInTheCenter(); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .SVGTextShape .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .SVGTextShape .TextParagraph .TextPosition tspan') .should('have.attr', 'font-size', '776px'); }); @@ -140,7 +140,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextPosition') .should('have.attr', 'y', '8643'); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'font-size', '1129px'); helper.typeIntoDocument('{ctrl}{shift}p'); @@ -150,7 +150,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextPosition') .should('have.attr', 'y', '8271'); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'font-size', '655px'); }); @@ -160,7 +160,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextPosition') .should('have.attr', 'y', '8643'); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'font-size', '1129px'); helper.typeIntoDocument('{ctrl}{shift}b'); @@ -170,7 +170,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Top toolbar tests.', funct cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextPosition') .should('have.attr', 'y', '8734'); - cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph') + cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition tspan') .should('have.attr', 'font-size', '655px'); }); }); |