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 <boris.sekachev@intel.com>
main
Dmitry Kruchinin 5 years ago committed by GitHub
parent b18482b42c
commit 472728d5f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
});

Loading…
Cancel
Save