https://cypress.io logo
hey all cy.origin() question regarding redirects -...
# e2e-testing
n
hey all cy.origin() question regarding redirects --- here is my scenario
Copy code
// suedo code detailing the redirects as soon as cy.visit() hits 

 cy.visit(https://baseurl/3rdPartyVendor/)
   
 -> 301: https://companyName--dev.DOMAIN1.com/wizardry/services/auth/sso/OauthClient

  -> 302: https://baseurl/auth?response_type=gobblygook=redirect_uri=companyName--dev.DOMAIN1.com

   -> 302: https://baseurl/something

   after the last 302 we land on 
   https://companyName--dev.DOMAIN1.com/comms/aaaa

//the code
           cy.visit(https://baseurl/3rdPartyVendor/);

                cy.origin('companyName--dev.DOMAIN1.com', () => {
                    //url assertion below works
                    cy.url().should('contain', 'https://companyName--dev.DOMAIN1.com/comms/aaaa');

                    //but cant do any ui actions because page is blank
                });
any ideas why the page is blank i cant tell if im doing it wrong, i do know that other tests I have that dont have multiple redirects work as intended