cy.origin() error
# i-need-help
b
Following the example in https://docs.cypress.io/guides/end-to-end-testing/okta-authentication#Login-with-cyorigin I add the following to my beforeEach cy.visit("/"); cy.origin("https://my-identity-provider-url", () => { cy.log("got here"); }); I get the following error: cy.origin() requires that the first argument to be a different domain than top. You passed https://my-identity-provider-url to the origin command, The app is set up so that when any protected route is visited it redirects to Okta's login UI at the provided URL. The root is visited and redirects to Okta's UI and then the origin command is passed the same URL in the first param. The strange thing is that this used to work. Thanks in advance.