Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress test. Repeat draw feature. #2887

Conversation

dvkruchinin
Copy link
Contributor

Motivation and context

Add Cypress test.

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT


it('Draw and repeat draw a point.', () => {
cy.createPoint(createPointsShape);
cy.get('.cvat-canvas-container').trigger('mousemove', 750, 400);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I see in points we do not check:

            cy.get('#cvat_canvas_shape_5').should('have.class', 'cvat_canvas_shape_activated');

Is it intented? Why do we need this mousemove in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the activation of the object before repeating the drawing

Comment on lines 111 to 116
cy.get('.cvat_canvas_shape').then(($shape) => {
expect($shape.length).to.be.equal(6);
});
cy.get('.cvat-objects-sidebar-state-item').then(($sidebarItem) => {
expect($sidebarItem.length).to.be.equal(6);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of these checks is extra IMHO

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it. Left the object sidebar check

@bsekachev bsekachev assigned bsekachev and unassigned ActiveChooN Mar 2, 2021
@bsekachev bsekachev requested review from bsekachev and removed request for ActiveChooN March 2, 2021 11:28
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 71.858% when pulling a41cd7f on dvkruchinin:dkru/cypress-test-case-55-repeat-draw-feature into 638850a on openvinotoolkit:develop.

@bsekachev bsekachev merged commit a77b7f6 into cvat-ai:develop Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants