Testing · Junior · Question 47 of 78

How do you check that an element is NOT on the page?

Explanation

getBy would throw before the assertion runs, and findBy returns a promise, which is always truthy.

Further reading

Problem with a question

Testing · Junior · question 47

Test yourself

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

Take this quiz