-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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. Canvas 3D. Control button mouse interaction. #3003
Cypress test. Canvas 3D. Control button mouse interaction. #3003
Conversation
function compareImages(imgBefore, imgAfter) { | ||
cy.compareImages(`${screenshotsPath}/${imgBefore}`, `${screenshotsPath}/${imgAfter}`).then((diffPercent) => { | ||
expect(diffPercent).to.be.gt(0); | ||
}); | ||
} |
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.
We already have such the function in tests/cypress/integration/canvas3d_functionality/case_56_canvas3d_functionality_basic_actions.js
.
Wouldn't it better to import it from there?
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.
I moved this function to command file due to running a it()
if import it from the case_56
.
Motivation and context
Cypress test to check canvas 3D functionality.
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.