stale-optician-85950
10/02/2022, 12:56 PMcy.origin code:
cy.origin('https://accounts.google.com', () => {
cy.visit('/');
cy.url().then($newUrl => {
cy.log('newUrl', $newUrl);
});
});
or
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?