https://cypress.io logo
If I do the following within `cy.origin` code: ```...
# help
s
If I do the following within
cy.origin
code:
Copy code
cy.origin('https://accounts.google.com', () => {
      cy.visit('/');
      cy.url().then($newUrl => {
        cy.log('newUrl', $newUrl);
      });
    });
or
Copy code
cy.origin('https://accounts.google.com', () => {
      cy.visit('/');
      cy.get('body');
    });
There is nothing in
$newUrl
It's like the new page is detached from Cypress runner. I tried a few different ways for you but after the redirect to https://accounts.google.com/v3/signin/identifier? your page is detached and I cannot access anything on it. I'd also be interested to hear input from other users here. Isn't
cy.origin
supposed to handle redirects?