added test

main
Dmitriy Oparin 5 years ago
parent 5e2a9e35e3
commit 437a2c78fd

@ -0,0 +1,50 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
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');
});
});
});
Loading…
Cancel
Save