<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7VMRSA3Okta Classic EngineIntegrationsAnswered2024-04-30T09:18:25.000Z2018-03-09T17:47:51.000Z2018-03-09T17:47:51.000Z
Do you have an example of authenticating to a webapp that works with cypress.io?
when I try to login to a webapp the 302 redirect breaks things. Below is the error message. 

CypressError: cy.visit() failed because you are attempting to visit a second unique domain.

You may only visit a single unique domain per test.

Different subdomains are okay, but unique domains are not.

The previous domain you visited was: 'https://xxxx'

You're attempting to visit this new domain: 'https://xxxxx'

You may need to restructure some of your code to prevent this from happening.

https://on.cypress.io/cannot-visit-second-unique-domain

j5v7c likes this.
  • andrei.hava (Okta, Inc.)

    Hello Troy,

     

    This is a particularly specific issue tied to Cypress. After having checked internally, Cypress is not something we support fully, thus I strongly recommend submitting an idea about this.

     

    Otherwise, if this is something that's blocking production, please reach out to Support and open a ticket with us directly.

     

    Thank you,

    Andrei Hava

    Okta Developer Support
    Expand Post
  • j5v7c (j5v7c)

    Hello Okta Admin,

     

    Thanks for posting your inquiry in Okta Community Portal.

     

    ​If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer." 

     

    Thank you,

     

    ​Dylann Fezeu

    Okta Help Center Team
    Expand Post
This question is closed.
Loading
Do you have an example of authenticating to a webapp that works with cypress.io?