-
Notifications
You must be signed in to change notification settings - Fork 3k
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 "Image rotate" for Firefox. #2857
Cypress. Fix case "Image rotate" for Firefox. #2857
Conversation
@@ -31,7 +32,8 @@ context('Check if the image is rotated', () => { | |||
.then(($styles) => { | |||
scaleAfter = Number($styles.match(/scale\((\d\.\d+)\)/m)[1]); | |||
cy.expect(scaleBefore).to.be.greaterThan(scaleAfter); | |||
cy.get('#cvat_canvas_content').dblclick(); | |||
cy.get('#cvat_canvas_content').dblclick().wait(500); |
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.
Why not 300 or 10000?
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.
Reduced the waiting time. Also separated this behavior depending on the browser. This time was revealed when checking the passing of the test in CI when using the Firefox browser. At the moment, the Cypress repository has an open issue on the issue of different test results in the Firefox browser in headless mode and without it. cypress-io/cypress#8610
If necessary, can I open a separate issue and specify the CVAT repository to reproduce the error?
…o dkru/cypress-case-5-image-rotate-fix-for-firefox
7cd7e9b
to
ca6eeff
Compare
What is wrong with this test? It works for me in current implementation (Firefox 85, headless, antd 4.12). |
This test does not always fail. But in CI-nightly, it is steadily falling. I will try to consider other solutions. |
…o dkru/cypress-case-5-image-rotate-fix-for-firefox
Add an additional click on the canvas for hide the popover.
Re-worked the test. Removed wait() and added an extra click on the canvas to hide the popover before scaling the image. |
Great, thanks! |
Motivation and context
Patches are designed to solve the error
when running the test by Firefox with headless mode.
Link to check: https://github.com/dvkruchinin/cvat/actions/runs/595622158
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.