Skip to content

Remove Cypress from docs for now #954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@
["Overview", "/testing/overview"],
["Test Emails and Phones", "/testing/test-emails-and-phones"],
"# Testing Frameworks",
["Cypress", "/testing/cypress"],
["Playwright", "/testing/playwright"],
["Postman or Insomnia", "/testing/postman-or-insomnia"]
]
Expand Down
206 changes: 0 additions & 206 deletions docs/testing/cypress.mdx

This file was deleted.

4 changes: 2 additions & 2 deletions docs/testing/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ To avoid sending an email or SMS message with a one time passcode (OTP) during t
Testing Tokens enable bypassing various bot detection mechanisms that typically safeguard Clerk applications against malicious bots, thus allowing test suites to run uninhibited. Without Testing Tokens, you may encounter "Bot traffic detected" errors in your requests.

<Callout type="info">
While manually implementing the following logic in your test suite is possible, if you use Playwright you can use our [Playwright integration](/docs/testing/playwright), which will automatically take care of all of this.
While manually implementing the following logic in your test suite is possible, Clerk offers a [Playwright integration](/docs/testing/playwright) which will automatically take care of all of this.
</Callout>

Obtained via the [Backend API](https://clerk.com/docs/reference/backend-api/tag/Testing-Tokens), Testing Tokens are short-lived and valid only for the specific instance for which they are issued. Testing Tokens are only available in development instances.

Upon retrieval, include the token value in a `__clerk_testing_token` query parameter with your Frontend API requests. For instance, a sign-up request using a Testing Token, would look like this:
Upon retrieval, include the token value in a `__clerk_testing_token` query parameter with your Frontend API requests. For instance, a sign-up request using a Testing Token would look like this:

```shell
POST https://happy-hippo-1.clerk.accounts.dev/v1/sign_ups?__clerk_testing_token=1713877200-c_2J2MvPu9PnXcuhbPZNao0LOXqK9A7YrnBn0HmIWxy
Expand Down
Loading