-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Cypress test. Repeat draw feature. #2887
Conversation
|
||
it('Draw and repeat draw a point.', () => { | ||
cy.createPoint(createPointsShape); | ||
cy.get('.cvat-canvas-container').trigger('mousemove', 750, 400); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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); | ||
}); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
tests/cypress/integration/actions_tasks_objects/case_55_repeat_draw_feature.js
Show resolved
Hide resolved
…o dkru/cypress-test-case-55-repeat-draw-feature
Motivation and context
Add Cypress test.
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.