What problem does it solve? End-to-end tests for Clerk-authenticated apps often fail due to bot detection, shared session state, and slow UI-based sign-in flows, making auth testing unreliable and time-consuming. ## Core Features & Use Cases - Framework Guidance: Provides decision-tree documentation links and setup workflows for both Playwright and Cypress test frameworks. - Auth Session Management: Explains how to use clerkSetup(), setupClerkTestingToken(), and storageState to bypass bot detection and persist auth between tests. - Best Practices & Anti-Patterns: Lists common mistakes like using production keys in tests or signing in via UI for every test, with concrete fixes. - Use Case: When adding E2E tests to a Next.js app protected by Clerk, follow the workflow to configure a testing token, save authenticated state once, and reuse it across the test suite for fast, stable runs. ## Quick Start Set up Playwright end-to-end tests for my Clerk-authenticated Next.js app using test API keys and a testing token.