Cypress · Middle · Question 15 of 77

What does cy.origin() solve?

Show the answer

Correct answer: Running commands on another domain, e.g. an SSO login page

Explanation

Cypress normally restricts a test to one origin. cy.origin lets you interact with a third-party login page, then return.

Further reading

Problem with a question

Cypress · Middle · question 15

Test yourself

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

Take this quiz