Writer mobile: Update insert object test for comments.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I984455562491cd64234f2e06d4940503ae287a15
This commit is contained in:
Gökay Şatır 2021-06-10 21:08:51 +03:00 committed by Gökay ŞATIR
parent 6802a7d9e1
commit 6872f4d991

View file

@ -39,21 +39,16 @@ describe('Insert objects via insertion wizard.', function() {
.click(); .click();
// Comment insertion dialog is opened // Comment insertion dialog is opened
cy.get('.loleaflet-annotation-table') cy.get('.loleaflet-annotation-table').should('exist');
.should('exist');
// Add some comment // Add some comment
cy.get('.loleaflet-annotation-textarea') cy.get('#new-mobile-comment-input-area').type('some text');
.type('some text');
cy.get('.vex-dialog-button-primary') cy.get('.vex-dialog-button-primary').click();
.click();
cy.get('.wizard-comment-box.loleaflet-annotation-content-wrapper') cy.get('#comment-container-1').should('exist');
.should('exist');
cy.get('.wizard-comment-box .loleaflet-annotation-content') cy.get('#annotation-content-area-1').should('have.text', 'some text');
.should('have.text', 'some text');
}); });
it('Insert default table.', function() { it('Insert default table.', function() {