Improved support for Cypress testing
- Category
- E2E
- Published
Enhanced end-to-end testing with Clerk using Cypress
We are thrilled to announce significant enhancements to our @clerk/testing
package, making it easier to use Cypress with Clerk!
@clerk/testing@1.2.0
includes the following improvements:
- Full browser support: We have resolved existing issues with Cypress and now support all Cypress-supported browsers, including Chrome, Electron, and Firefox.
- Testing Tokens: The testing tokens mechanism that was introduced in the Playwright integration is now available in Cypress as well. This feature allows you to bypass bot detection mechanisms effortlessly, eliminating frustrating "Bot traffic detected" errors and enabling uninterrupted testing workflows.
- Cypress Custom Commands: We've added custom Clerk commands that you can use inside your tests. These commands, like
cy.clerkSignIn()
andcy.clerkSignOut()
, make it easy to handle sign-in and sign-out actions within your tests without interacting with the UI.
To learn more and get detailed setup instructions, visit our Cypress documentation.