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. Fix case "Actions on polygon" for Firefox. #3446

Merged
merged 1 commit into from
Jul 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ context('Actions on polygon', () => {
});

it('Activate first shape', () => {
cy.get('#cvat_canvas_shape_1').trigger('mousemove').trigger('mouseover');
cy.get('#cvat-objects-sidebar-state-item-1').trigger('mousemove').trigger('mouseover');
Copy link
Member

@bsekachev bsekachev Jul 21, 2021

Choose a reason for hiding this comment

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

I had the same issue in another test when was writing PR #3417 (test case_37_object_make_copy.js). It also was reproducible only in headless (but in Chrome). I changed the following:
Screenshot from 2021-07-22 00-35-23

And looks like it helped.
Maybe it helps you to understand the root cause (I didn't understand).

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

it('First shape is over the second shape', () => {
Expand Down