Cypress · Junior · Question 8 of 75

What does cy.visit('/products') do?

Show the answer

Correct answer: Opens that page in the test browser and waits for it to load

Explanation

cy.visit waits for the page's load event before moving on. Use cy.request to call an API without rendering.

Further reading

Problem with a question

Cypress · Junior · question 8

Test yourself

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

Take this quiz