DEV Community

Discussion on: E2E Testing with Cypress - 04 - Cucumber / Gherkin Integration

Collapse
 
kiranparajuli589 profile image
Kiran Parajuli

Cypress does not and may never have multi-tab support for various reasons. Multiple tabs work against the way Cypress automates your application and they are inherently flaky and inconsistent - even if we did find a way to support them. You can look here to look at what Cypress has to say about it. Luckily there are lots of easy and safe workarounds that enable you to test the behavior of your application. This repo contains some examples for links opening new tabs.

Collapse
 
liviufromendtest profile image
Liviu Lupei

Working with multiple tabs is flaky and inconsistent?
I don't think that is true.
Selenium can do that without any issue.
Browser tabs are browser tabs, they don't appear and disappear in a random way.
Even if your anchor element has the correct attributes, simply checking the existence and values of those attributes does not make up for the lack of an actual test.
That's just my opinion.
I noticed that all your articles are about Cypress.
Do you work for them or have they offered you any incentive to write positive things about them?
I think it's important that you should mention that.

Thread Thread
 
kiranparajuli589 profile image
Kiran Parajuli

If you're using Cypress as a test framework and you've managed to navigate to multiple tabs -- then the tests would surely go flaky and inconsistent because of Cypress architecture. I would highly recommend frameworks like Nightwatch, CodeceptJS, Behat, Behave which works together with selenium if you want to test multiple tabs web UI interactions.
P.S. I'm a QA developer and like to write about the tools I'm familiar with. 😊
Happy Coding!