From 6872f4d9912885bb903a2d4c576bab5ed7653786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kay=20=C5=9Eat=C4=B1r?= Date: Thu, 10 Jun 2021 21:08:51 +0300 Subject: [PATCH] Writer mobile: Update insert object test for comments. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gökay Şatır Change-Id: I984455562491cd64234f2e06d4940503ae287a15 --- .../mobile/writer/insert_object_spec.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/cypress_test/integration_tests/mobile/writer/insert_object_spec.js b/cypress_test/integration_tests/mobile/writer/insert_object_spec.js index 86bb784f2..a306cb59a 100644 --- a/cypress_test/integration_tests/mobile/writer/insert_object_spec.js +++ b/cypress_test/integration_tests/mobile/writer/insert_object_spec.js @@ -39,21 +39,16 @@ describe('Insert objects via insertion wizard.', function() { .click(); // Comment insertion dialog is opened - cy.get('.loleaflet-annotation-table') - .should('exist'); + cy.get('.loleaflet-annotation-table').should('exist'); // Add some comment - cy.get('.loleaflet-annotation-textarea') - .type('some text'); + cy.get('#new-mobile-comment-input-area').type('some text'); - cy.get('.vex-dialog-button-primary') - .click(); + cy.get('.vex-dialog-button-primary').click(); - cy.get('.wizard-comment-box.loleaflet-annotation-content-wrapper') - .should('exist'); + cy.get('#comment-container-1').should('exist'); - cy.get('.wizard-comment-box .loleaflet-annotation-content') - .should('have.text', 'some text'); + cy.get('#annotation-content-area-1').should('have.text', 'some text'); }); it('Insert default table.', function() {