Cypress · Middle · Question 15 of 77
What does cy.origin() solve?
- 1Running commands on another domain, e.g. an SSO login page
- 2Choosing which data centre all of the tests run from
- 3Resetting the page's origin to
about:blank
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.