diff --git a/tests/cypress/integration/actions_objects2/case_115_ellipse_shape_track_label.js b/tests/cypress/integration/actions_objects2/case_115_ellipse_shape_track_label.js index 6aa33291..4058583d 100644 --- a/tests/cypress/integration/actions_objects2/case_115_ellipse_shape_track_label.js +++ b/tests/cypress/integration/actions_objects2/case_115_ellipse_shape_track_label.js @@ -78,8 +78,6 @@ context('Actions on ellipse.', () => { (createEllipseTrackSwitchLabel.rightX + createEllipseTrackSwitchLabel.cx) / 2, createEllipseTrackSwitchLabel.topY + 20, '53.1', - false, - false, ); testCompareRotate('cvat_canvas_shape_4', 0); // Rotation with shift @@ -89,7 +87,6 @@ context('Actions on ellipse.', () => { createEllipseTrackSwitchLabel.topY + 20, '60.0', true, - false, ); }); }); diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index 9ef50846..c701d198 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -802,8 +802,7 @@ Cypress.Commands.add('exportTask', ({ cy.closeNotification('.cvat-notification-notice-export-task-start'); }); -// FIXME: remove "checkText" after implementstion for ellipse -Cypress.Commands.add('shapeRotate', (shape, x, y, expectedRotateDeg, pressShift, checkText = true) => { +Cypress.Commands.add('shapeRotate', (shape, x, y, expectedRotateDeg, pressShift = false) => { cy.get(shape) .trigger('mousemove') .trigger('mouseover') @@ -821,9 +820,7 @@ Cypress.Commands.add('shapeRotate', (shape, x, y, expectedRotateDeg, pressShift, cy.document().then((doc) => { const modShapeIDString = shape.substring(1); // Remove "#" from the shape id string const shapeTranformMatrix = decomposeMatrix(doc.getElementById(modShapeIDString).getCTM()); - if (checkText) { - cy.get('#cvat_canvas_text_content').should('contain.text', `${shapeTranformMatrix}°`); - } + cy.get('#cvat_canvas_text_content').should('contain.text', `${shapeTranformMatrix}°`); expect(`${expectedRotateDeg}°`).to.be.equal(`${shapeTranformMatrix}°`); }); cy.get('.cvat-canvas-container').trigger('mouseup');