diff options
author | Gökay Şatır <gokaysatir@gmail.com> | 2023-05-10 12:21:12 +0300 |
---|---|---|
committer | Gökay ŞATIR <gokaysatir@gmail.com> | 2023-05-10 18:57:53 +0300 |
commit | 31d70be23fbd12a81af8fec5e1854f07f39ff247 (patch) | |
tree | 198f00496477131ecdfb9f8bf4fc7237e7a4a32b /cypress_test/integration_tests/desktop | |
parent | wsd: use helper where available (diff) | |
download | online-31d70be23fbd12a81af8fec5e1854f07f39ff247.tar.gz online-31d70be23fbd12a81af8fec5e1854f07f39ff247.zip |
Enable impress text paragraph props test.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I75540d483b71b4d61ad274097c61b3f974be1393
Diffstat (limited to 'cypress_test/integration_tests/desktop')
-rw-r--r-- | cypress_test/integration_tests/desktop/impress/apply_paragraph_props_text_spec.js | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/cypress_test/integration_tests/desktop/impress/apply_paragraph_props_text_spec.js b/cypress_test/integration_tests/desktop/impress/apply_paragraph_props_text_spec.js index 51ae870ed0..932394cdc0 100644 --- a/cypress_test/integration_tests/desktop/impress/apply_paragraph_props_text_spec.js +++ b/cypress_test/integration_tests/desktop/impress/apply_paragraph_props_text_spec.js @@ -9,8 +9,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties beforeEach(function() { testFileName = helper.beforeAll(origTestFileName, 'impress'); - - helper.clickOnIdle('#toolbar-up > .w2ui-scroll-right'); + cy.cGet('#toolbar-up > .w2ui-scroll-right').click(); cy.cGet('#tb_editbar_item_modifypage').click(); impressHelper.selectTextShapeInTheCenter(); }); @@ -19,97 +18,94 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Apply paragraph properties helper.afterAll(testFileName, this.currentTest.state); }); - it.skip('Apply left/right alignment on selected text.', function() { + it('Apply left/right alignment on selected text.', function() { cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '1400'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_rightpara'); + cy.cGet('#tb_editbar_item_rightpara').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '23586'); - helper.clickOnIdle('#tb_editbar_item_leftpara'); + cy.cGet('#tb_editbar_item_leftpara').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '1400'); }); - it.skip('Apply center alignment on selected text.', function() { + it('Apply center alignment on selected text.', function() { cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '1400'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_centerpara'); + cy.cGet('#tb_editbar_item_centerpara').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '12493'); }); - it.skip('Apply justified alignment on selected text.', function() { + it('Apply justified alignment on selected text.', function() { cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '1400'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_rightpara'); + cy.cGet('#tb_editbar_item_rightpara').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '23586'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_justifypara'); + cy.cGet('#tb_editbar_item_justifypara').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph .TextPosition') .should('have.attr', 'x', '1400'); }); - it.skip('Apply default bulleting on selected text.', function() { + it('Apply default bulleting on selected text.', function() { // We have no bulleting by default cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .BulletChars') .should('not.exist'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_defaultbullet'); + cy.cGet('#tb_editbar_item_defaultbullet').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .BulletChars') .should('exist'); }); - it.skip('Apply default numbering on selected text.', function() { + it('Apply default numbering on selected text.', function() { // We have no bulleting by default cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .SVGTextShape tspan') .should('not.have.attr', 'ooo:numbering-type'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_defaultnumbering'); + cy.cGet('#tb_editbar_item_defaultnumbering').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .SVGTextShape tspan') .should('have.attr', 'ooo:numbering-type', 'number-style'); }); - it.skip('Increase/decrease spacing of selected text.', function() { + it('Increase/decrease spacing of selected text.', function() { cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph:nth-of-type(2) tspan') .should('have.attr', 'y', '6600'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_linespacing'); - + cy.cGet('#tb_editbar_item_linespacing').click(); cy.cGet('body').contains('td','Increase Paragraph Spacing').click(); - impressHelper.triggerNewSVGForShapeInTheCenter(); cy.cGet('.leaflet-pane.leaflet-overlay-pane g.Page .TextParagraph:nth-of-type(2) tspan') .should('have.attr', 'y', '6700'); impressHelper.selectTextOfShape(); - helper.clickOnIdle('#tb_editbar_item_linespacing'); - + cy.cGet('#tb_editbar_item_linespacing').click(); cy.cGet('body').contains('td','Decrease Paragraph Spacing').click(); impressHelper.triggerNewSVGForShapeInTheCenter(); |