Skip to content

Commit

Permalink
Created a cypress test for Insert Image
Browse files Browse the repository at this point in the history
Change-Id: I8f7a56f34b8e6bcd7cad269112864e9ed9250ce3
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
  • Loading branch information
Ezinnem authored and tzolnai committed Oct 30, 2020
1 parent 6a0241f commit 23a5cdd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -14,7 +14,7 @@ describe('Top toolbar tests.', function() {
afterEach(function() {
helper.afterAll(testFileName);
});

it('Apply highlight color.', function() {
cy.get('#tb_editbar_item_backcolor')
.click();
Expand Down Expand Up @@ -187,4 +187,17 @@ describe('Top toolbar tests.', function() {
cy.get('#copy-paste-container table')
.should('exist');
});

it('Insert image.', function() {
cy.get('#toolbar-up .w2ui-scroll-right')
.click();
cy.get('#tb_editbar_item_insertgraphic')
.should('be.visible');

cy.get('#insertgraphic[type=file]')
.attachFile('/desktop/writer/image_to_insert.png');

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

0 comments on commit 23a5cdd

Please sign in to comment.