diff options
author | Thais Vieira <thais.vieira@collabora.com> | 2020-12-03 06:58:54 -0300 |
---|---|---|
committer | Tamás Zolnai <zolnaitamas2000@gmail.com> | 2020-12-03 11:33:14 +0100 |
commit | a335e6763eb371dc1cc9e639b972805c5f118e69 (patch) | |
tree | 66a56a41f1a3777017dafbb01a0b20d177fbc46e | |
parent | pivot table dialog: ref button icon (diff) | |
download | online-private/thais/impress8.tar.gz online-private/thais/impress8.zip |
impress/cypress: add tests for font size
private/thais/impress8
and font name.
Signed-off-by: Thais Vieira <thais.vieira@collabora.com>
Change-Id: I959a7bc455371504897e03dcc0be8b26178b0202
-rw-r--r-- | cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js | 25 |
1 files changed, 25 insertions, 0 deletions
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 c2fa49fd03..675269d5a0 100644 --- a/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js +++ b/cypress_test/integration_tests/desktop/impress/top_toolbar_spec.js @@ -90,6 +90,31 @@ describe('Top toolbar tests.', function() { }); + it('Apply a selected font name on the text shape', function() { + cy.get('#tb_editbar_item_fonts') + .click(); + + desktopHelper.selectFromListbox('Liberation Mono'); + + impressHelper.triggerNewSVGForShapeInTheCenter(); + + cy.get('.leaflet-pane.leaflet-overlay-pane g.Page .TextShape .TextParagraph') + .should('have.attr', 'font-family', 'Liberation Mono'); + }); + + it('Apply a selected font size on the text shape', function() { + + cy.get('#tb_editbar_item_fontsizes') + .click(); + + desktopHelper.selectFromListbox('22'); + + impressHelper.triggerNewSVGForShapeInTheCenter(); + + cy.get('.leaflet-pane.leaflet-overlay-pane g.Page .TextShape .TextParagraph') + .should('have.attr', 'font-size', '776px'); + }); + it('Apply left/right alignment on text seleced text.', function() { cy.get('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '1400'); |