0

I have been using Cypress to run a test on my site. When clicking a button it keeps taking me to a new tab and I can no longer continue my test with Cypress. I have already used the invoke function to remove the "target" aspect. I'm not sure what else I can do.

This is the current code I have:

I have already used the invoke function to remove the "target" aspect. I was expecting the new tab not to be opened but Cypress opened a new tab anyway.

Moritz Ringler
  • 9,772
  • 9
  • 21
  • 34
FMO625
  • 1
  • 1

1 Answers1

0

Cypress does not support multiple tabs.

A workaround for this would be to opt to visit to the page taking the content from href.

Please check the answer in this question.

GoushiRam
  • 87
  • 1
  • 5