Skip to content

Commit

Permalink
Cypress test. Updating case 54. Added checking issue 3219. (#3333)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
dvkruchinin and Boris Sekachev committed Jun 16, 2021
1 parent b18482b commit 472728d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 472728d

Please sign in to comment.