I have a problem using Cypress when running tests on our staging domain. For some reason Cypres browser opens the correct website but then immediately changes the url to the absolute domain and appends __/
at the end:
https://stagingdomain.com/administrators/login
becomes https://stagingdomain.com/__/
On production this does not happen, the test passes correctly. Sidenote: Our staging environment is only accessible behind our corporate VPN, but besides that everything else is the same
it('Gets, types and asserts', function () {
cy.visit('https://stagingdomain.com/administrators/login');
cy.contains('ADMIN LOGIN');
cy.url().should('include', 'administrators');
});
});
I have followed all security measures provided on Cypress' documentation but none seem to be resolving this issue. Wondering if anyone else has faced the same challenge and has been able to overcome it
Turns out this was a known issue with Cypress which was since addressed in version 3.4.1