From 52b517171a5b7cb65877fd3fe463873dfe088b3c Mon Sep 17 00:00:00 2001 From: Dmitriy Oparin Date: Fri, 13 Nov 2020 17:39:46 +0300 Subject: [PATCH] added step after and improvements test --- ...203_error_сannot_read_property_at_saving_job.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/cypress/integration/actions_tasks_objects/pr_2203_error_сannot_read_property_at_saving_job.js b/tests/cypress/integration/actions_tasks_objects/pr_2203_error_сannot_read_property_at_saving_job.js index a521efc7..f0f68d50 100644 --- a/tests/cypress/integration/actions_tasks_objects/pr_2203_error_сannot_read_property_at_saving_job.js +++ b/tests/cypress/integration/actions_tasks_objects/pr_2203_error_сannot_read_property_at_saving_job.js @@ -8,7 +8,7 @@ import { taskName, labelName } from '../../support/const'; context('Check error сannot read property at saving job', () => { - const issueIds = '2053, 2202'; + const prId = '2203'; const createRectangleShape2Points = { points: 'By 2 Points', type: 'Shape', @@ -23,13 +23,18 @@ context('Check error сannot read property at saving job', () => { cy.openTaskJob(taskName); }); - describe(`Testing issues "${issueIds}"`, () => { + after('Go to task list', () => { + cy.removeAnnotations(); + cy.saveJob(); + }); + + describe(`Testing pr "${prId}"`, () => { it('Create an object in first frame', () => { cy.createRectangle(createRectangleShape2Points); }); it('Go to next frame and create an object in second frame', () => { - cy.get('body').type('f'); + cy.get('.cvat-player-next-button').click(); cy.createRectangle(createRectangleShape2Points); }); @@ -38,7 +43,7 @@ context('Check error сannot read property at saving job', () => { }); it('Save job and go to previous frame at saving job', () => { - cy.get('button').contains('Save').click({ force: true }); + cy.saveJob(); cy.get('body').type('d'); });