Skip to content

Latest commit

 

History

History
 
 

testing-dom__tab-handling-links

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

tab-handling-anchor-links

How to get around lack of multiple tabs in Cypress

Read Trade-offs - Multiple tabs, and see cypress/integration/tab_handling_anchor_links_spec.js how to:

  • Test anchor links opening in new tabs: <a target="_blank">.
  • Test anchor links that link to external domains: <a href="...">.
  • Prevent content from opening in a new tab.
  • Request external content that would open in a new tab using cy.request().
  • Speed up tests by reducing loading times.