Skip to content

Commit 2f21221

Browse files
authored
chore: Minor Testing Tokens callout improvement (#944)
1 parent d909f58 commit 2f21221

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/testing/overview.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ To avoid sending an email or SMS message with a one time passcode (OTP) during t
1515

1616
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.
1717

18+
<Callout type="info">
19+
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.
20+
</Callout>
21+
1822
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.
1923

2024
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:
2125

22-
```
26+
```shell
2327
POST https://happy-hippo-1.clerk.accounts.dev/v1/sign_ups?__clerk_testing_token=1713877200-c_2J2MvPu9PnXcuhbPZNao0LOXqK9A7YrnBn0HmIWxy
2428
```
2529

26-
While manually integrating this logic in your test suite is possible, if you use Playwright you can use our [Playwright integration](/docs/testing/playwright), which will automatically perform all of this for you. We are working on a similar integration for Cypress.
27-
28-
For more information, feedback or issues, visit the
29-
[`@clerk/testing`](https://github.com/clerk/javascript/tree/main/packages/testing)
30-
package.
30+
For more information, feedback or issues, visit the [`@clerk/testing`](https://github.com/clerk/javascript/tree/main/packages/testing) package.

0 commit comments

Comments
 (0)