clerk-testing

Validate Clerk authentication flows in Playwright and Cypress test suites.

Updated Jun 20, 2026
One-click install
npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-testing-sudarshan-krishnan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-testing
Source: https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026/tree/main/app/.agents/skills/clerk-testing
Command: npx skills add https://github.com/sudarshan-krishnan/Sentinel_AIHackathon_Berkley_2026 --skill clerk-testing-sudarshan-krishnan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork from end-to-end testing of Clerk authentication flows by showing how to create reliable, isolated test sessions and avoid common auth setup failures.

Core Features & Use Cases

  • Framework Guidance: Provides targeted setup steps for Playwright and Cypress when testing Clerk-powered applications.
  • Stable Auth Testing: Covers session isolation, test keys, storage state, and bot-detection bypass patterns to keep tests fast and repeatable.
  • Use Case: A team verifying sign-up, sign-in, or protected-route behavior can use this Skill to configure their test environment and validate Clerk UI flows consistently.

Quick Start

Use this skill to configure your Playwright or Cypress test suite for Clerk authentication flows with fresh session state, test keys, and the Clerk testing token.

Frequently Asked Questions about clerk-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Clerk authentication flows in Playwright without triggering bot detection?

To test Clerk authentication flows in Playwright without triggering bot detection, use Clerk test keys alongside setupClerkTestingToken and clerkSetup. These configure your environment to bypass bot-detection mechanisms during development and QA, ensuring reliable and repeatable test execution.

What is the best way to handle session isolation when testing Clerk auth with Cypress?

The best way to handle session isolation when testing Clerk auth with Cypress is applying framework-specific auth state handling and storage state reuse. This Skill provides targeted setup steps to configure fresh session state for each test, keeping your authentication flows isolated and consistent.

Why does my Clerk sign-in test fail during end-to-end test suite execution?

Clerk sign-in tests often fail during end-to-end execution due to missing test keys or improper bot-detection bypass configuration. Applying clerkSetup and setupClerkTestingToken ensures your test environment is properly configured for stable, repeatable authentication validations.

Do I need Clerk test keys to configure end-to-end testing for authentication?

Yes, Clerk test keys are required to configure end-to-end testing for authentication. They enable the setupClerkTestingToken and clerkSetup functions, which are necessary for bypassing bot detection and managing session isolation and storage state reuse in Playwright and Cypress.

Can I reuse storage state for Clerk authentication tests across multiple scenarios?

Yes, you can reuse storage state for Clerk authentication tests across multiple scenarios. This Skill covers storage state reuse patterns for both Playwright and Cypress, allowing you to maintain valid authenticated sessions and speed up test execution by avoiding redundant sign-in steps.