minor fix

main
Dmitriy Oparin 5 years ago
parent 60e60f1bb6
commit ef93bac403

@ -23,11 +23,6 @@ context('Check error canvas is busy at resize element', () => {
cy.openTaskJob(taskName);
});
after('Remove annotations and save job', () => {
cy.removeAnnotations();
cy.saveJob();
});
describe(`Testing issue "${issueId}"`, () => {
it('Create an object in first frame', () => {
cy.createRectangle(createRectangleShape2Points);
@ -44,8 +39,8 @@ context('Check error canvas is busy at resize element', () => {
});
it('Resize element on second frame and go to previous frame at resizing element', () => {
let secondX = createRectangleShape2Points['secondX'];
let secondY = createRectangleShape2Points['secondY'];
const secondX = createRectangleShape2Points.secondX;
const secondY = createRectangleShape2Points.secondY;
cy.get('.cvat-canvas-container')
.trigger('mousemove', secondX - 10, secondY - 10) // activate second shape
.trigger('mousedown', secondX, secondY, {button: 0})

@ -74,12 +74,6 @@ Cypress.Commands.add('openTask', (taskName) => {
cy.contains('strong', taskName).parents('.cvat-tasks-list-item').contains('a', 'Open').click({ force: true });
});
Cypress.Commands.add('saveJob', () => {
cy.get('button')
.contains('Save')
.click({ force: true });
});
Cypress.Commands.add('openJob', (jobNumber = 0) => {
let tdText = '';
cy.get('.ant-table-tbody')

Loading…
Cancel
Save