From 472728d5f937d02a4ffed5dde022433d48f9f33f Mon Sep 17 00:00:00 2001 From: Dmitry Kruchinin <33020454+dvkruchinin@users.noreply.github.com> Date: Wed, 16 Jun 2021 15:14:51 +0300 Subject: [PATCH] Cypress test. Updating case 54. Added checking issue 3219. (#3333) * Fixed cuboid redraw * Updated version & changelog * Fixed duplicated cuboid * Updated changelog * Do not skip test for cuboid * Removed comment * Fixed one more case * Case 54. Add checking issue 3219 Co-authored-by: Boris Sekachev --- .../actions_objects/case_54_redraw_feature.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/cypress/integration/actions_objects/case_54_redraw_feature.js b/tests/cypress/integration/actions_objects/case_54_redraw_feature.js index f5a85f52..9bb6e647 100644 --- a/tests/cypress/integration/actions_objects/case_54_redraw_feature.js +++ b/tests/cypress/integration/actions_objects/case_54_redraw_feature.js @@ -137,6 +137,15 @@ context('Redraw feature.', () => { cy.get('.cvat-canvas-container') .click(createCuboidShape2Points.firstX, createCuboidShape2Points.firstY - 50) .click(createCuboidShape2Points.secondX, createCuboidShape2Points.secondY - 50); + // Check issue 3219. Press "N" during the redrawing of the cuboid + cy.get('.cvat-canvas-container').trigger('mousemove', 350, 300); + cy.get('#cvat_canvas_shape_5').should('have.class', 'cvat_canvas_shape_activated'); + cy.get('body').trigger('keydown', { keyCode: keyCodeN, shiftKey: true }); // Start redraw the cuboid + cy.get('.cvat-canvas-container') + .click(createCuboidShape2Points.firstX, createCuboidShape2Points.firstY - 100) + .trigger('mousemove', createCuboidShape2Points.secondX, createCuboidShape2Points.secondY - 100); + cy.get('body').trigger('keydown', { keyCode: keyCodeN }); + cy.get('.cvat_canvas_shape_drawing').should('not.exist'); cy.get('.cvat_canvas_shape').then(($shape) => { expect($shape.length).to.be.equal(5); });