I am writing e2e tests with cypress for an app that uses auth0 for aunthentication from the documentation cypress 12 supports this using the cy.origin command .. my issue is when I click the login button, the origin command does not point to my new auth window command so I am unable to get the elements on that window
PS. I know there is a cy.request option. I want to know if cypress 12 supports this cy.visit('https://myapp.com'); cy.get("login_button").click()
cy.origin('https://accounts.google.com', () => {
cy.get('h1').should('have.text', 'Welcome')
cy.get('#username').type('test@test.com');
cy.get('input[type="password"]').type('testpassword', { log: false });
// clicking submit does the auth and redirects back to main site
cy.get('input[type="submit"]').click();
});