Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Created a cypress test for Insert Shape on writer
Change-Id: I689845328981d9dbfe34cc71eefebb802315a85e
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
  • Loading branch information
Ezinnem authored and tzolnai committed Nov 2, 2020
1 parent 06f61c1 commit a4b4027
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cypress_test/integration_tests/desktop/writer/top_toolbar_spec.js
Expand Up @@ -229,4 +229,18 @@ describe('Top toolbar tests.', function() {
.should('have.attr', 'href', 'http://www.something.com/');
});

it('Insert shape.', function() {
cy.get('#toolbar-up .w2ui-scroll-right')
.click();

cy.get('#tb_editbar_item_insertshapes')
.click();

cy.get('.col.w2ui-icon.basicshapes_octagon').
click();

cy.get('.leaflet-pane.leaflet-overlay-pane svg g')
.should('exist');
});

});

0 comments on commit a4b4027

Please sign in to comment.