Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 625 Bytes

File metadata and controls

10 lines (8 loc) · 625 Bytes

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.