Skip to content

Commit c561780

Browse files
authored
Tweak wording for IP gating during automated testing (#56)
* Remove duplicate link * Tweak wording to be less ambiguous * Refer to CAPTCHA verification
1 parent bad62ea commit c561780

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

docs/guides/automated-testing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ With this approach you can keep all other code in your application the same.
1313

1414
### IP or password-based gating
1515
If you perform automated end-to-end tests in production you may want to conditionally disable the captcha check for your test-runner.
16-
* If you know the IPs of the machines that run these tests you could whitelist those and skip the captcha check for those (or use the mocking approach above).
17-
* If you do not know the IP beforehand, you could have your test-runner put a secret in the form submission that you check for. In other words, you can specify a password that bypasses the captcha.
16+
17+
* If you know the IPs of the machines that run these tests you could skip [CAPTCHA verification](../getting-started/verify) by adding the IPs to an allowlist in your code or infrastructure.
18+
* If you do not know the IP beforehand, you could have your test-runner put a secret in the form submission that you check for. In other words, you can specify a password that your backend will accept for bypassing [CAPTCHA verification](../getting-started/verify).
1819

1920
### Dynamic button enabling
2021
Many websites that have a form protected using Friendly Captcha will only enable the submit button after the captcha widget is finished to prevent users from submitting without a valid captcha solution. When you are using a browser automation tool you may want to enable the button despite the captcha not being completed, we advice you achieve this by executing a snippet of Javascript (which is something you can do in all browser testing automation tools).

sidebars.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ const sidebars = {
110110
"guides/migrating-from-hcaptcha"
111111
]
112112
},
113-
{
114-
"type": "link",
115-
"href": "https://github.com/FriendlyCaptcha/friendly-captcha-sdk/blob/main/CHANGELOG.md",
116-
"label": "Changelog"
117-
},
118113
{
119114
"type": "category",
120115
"label": "Enterprise",

0 commit comments

Comments
 (0)