One challenge with Cypress is testing on multiple tabs. Our website default to opening in a new tab. Is there a way to make Cypress continue the tests on the same tab?
cy.get(element).invoke('attr', 'target', '_self').click()
I vaguely recall reading somewhere that it's possible, but my tired 1am brain can't seem to find the information via Google search. I also stumbled upon this section in the Cypress documentation, but it might not be applicable to my scenario since I need to perform multiple assertions on the new page which requires logging in via SSO: https://docs.cypress.io/api/commands/invoke.html#Function-with-Arguments