0

I am testing an application that has a "Continue" button This button has no href. When I click "Continue", it triggers a POST and redirects it to another superdomain.

I tried solutions like those mentioned in the link: Testing a redirect to a new route with Cypress

But it didn't work for me.

enter image description here

If I remove the "wait" after click, the following test fails with:

Step implementation missing for

  • have tried to use `.click({ force: true })` ? – Evgenii Bazhanov Jun 05 '20 at 14:21
  • I hadn't tried it, but it doesn't change the behavior. The problem is redirecting to another superdomain. I don't know how to get the new url without having its href. – Márcio Corrêa Jun 05 '20 at 14:41
  • You can workaround it by disabling websecurity, though might not be recommended. See details at https://docs.cypress.io/guides/guides/web-security.html#Set-chromeWebSecurity-to-false – Amit Jun 05 '20 at 16:11
  • Unfortunately I am unable to run from Chrome due to another problem. :( This setting only applies to Chrome. – Márcio Corrêa Jun 08 '20 at 17:04

0 Answers0