Cypress · Senior · Question 66 of 76

When is testing a canvas-based UI in Cypress practical?

Show the answer

Correct answer: Through app state, test hooks or visual comparisons

Explanation

Canvas content isn't in the DOM. Expose state for assertions or use screenshot diffs for visual checks.

Further reading

Problem with a question

Cypress · Senior · question 66

Test yourself

Take the Cypress · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz