-
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
How do I test fabric.js with cypress? #2378
Closed
nitingupta220 opened this issue
Aug 21, 2018
· 5 comments
· May be fixed by ajesse11x/cypress#42, paulbaudrier/cypress#39, harunpehlivan/cypress#36, noahblon/cypress#52 or schanne/cypress#41
Closed
How do I test fabric.js with cypress? #2378
nitingupta220 opened this issue
Aug 21, 2018
· 5 comments
· May be fixed by ajesse11x/cypress#42, paulbaudrier/cypress#39, harunpehlivan/cypress#36, noahblon/cypress#52 or schanne/cypress#41
Labels
Comments
This is my best guess.
|
@frazboyz I got the instance but then the actions that I want to do on it is not possible. |
Try something like this. cy.get('canvas').then(canvas => {
const element = canvas.get(0);
// Mutate the canvas using standard javascript, if you need to use another library, you will need to add that to your cypress project.
return canvas;
}); |
I would also suggest reading the Cypress documentation further. |
This was referenced Oct 20, 2020
If you have any other questions, please use https://github.com/cypress-io/cypress/discussions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using fabric.js in my website.
I want to test it using cypress.
Can you tell me how to do it?
@jennifer-shehane @brian-mann
The text was updated successfully, but these errors were encountered: