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 new file mode 100644 index 00000000..a521efc7 --- /dev/null +++ b/tests/cypress/integration/actions_tasks_objects/pr_2203_error_сannot_read_property_at_saving_job.js @@ -0,0 +1,50 @@ +// Copyright (C) 2020 Intel Corporation +// +// SPDX-License-Identifier: MIT + +/// + +import { taskName, labelName } from '../../support/const'; + +context('Check error сannot read property at saving job', () => { + + const issueIds = '2053, 2202'; + const createRectangleShape2Points = { + points: 'By 2 Points', + type: 'Shape', + switchLabel: false, + firstX: 100, + firstY: 100, + secondX: 300, + secondY: 300, + }; + + before(() => { + cy.openTaskJob(taskName); + }); + + describe(`Testing issues "${issueIds}"`, () => { + 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.createRectangle(createRectangleShape2Points); + }); + + it('Go to AAM', () => { + cy.changeWorkspace('Attribute annotation', labelName); + }); + + it('Save job and go to previous frame at saving job', () => { + cy.get('button').contains('Save').click({ force: true }); + cy.get('body').type('d'); + }); + + it('Page with the error is missing', () => { + cy.wait(100); + cy.contains('Oops, something went wrong').should('not.exist'); + }); + }); +}); \ No newline at end of file