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.