https://cypress.io logo
I had to set up a custom function to get around th...
# e2e-testing
a
I had to set up a custom function to get around the cross-visit issue. Goes against their rules, but we needed to do it on our application.
Copy code
Cypress.Commands.add('crossVisit', (crossUrl) => {
    // this is a workaround due to the fact that Cypress currently does not support hitting a different super domain with .visit()
    cy.window().then((window) => {
        window.location.assign(crossUrl);
    });
});
5 Views