Skip to content

Commit

Permalink
Update instructions for dev-build without captcha (#2661)
Browse files Browse the repository at this point in the history
This PR changes the instructions and the `using-dev-build` demo to show
how to disable captcha for local development.

I will adjust the `dfx deps` feature in a separate PR.
  • Loading branch information
Frederik Rothenberger authored Oct 18, 2024
1 parent 0ff88ad commit 63e29b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Use the Internet Identity canister in your local dfx project by adding the follo
"type": "custom",
"candid": "https://github.com/dfinity/internet-identity/releases/download/release-2024-10-01/internet_identity.did",
"wasm": "https://github.com/dfinity/internet-identity/releases/download/release-2024-10-01/internet_identity_dev.wasm.gz",
"init_arg": "(opt record { captcha_config = opt record { max_unsolved_captchas= 50:nat64; captcha_trigger = variant {Static = variant {CaptchaDisabled}}}})",
"remote": {
"id": {
"ic": "rdmx6-jaaaa-aaaaa-aaadq-cai"
Expand Down
3 changes: 3 additions & 0 deletions demos/using-dev-build/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did",
"wasm": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity_dev.wasm.gz",

"__1": "This init arg will disable the captcha during registration",
"init_arg": "(opt record { captcha_config = opt record { max_unsolved_captchas= 50:nat64; captcha_trigger = variant {Static = variant {CaptchaDisabled}}}})",

"__2": "The remote block indicates that this canister is only used locally and should not be deployed on the IC.",
"remote": {
"id": {
Expand Down
12 changes: 0 additions & 12 deletions demos/using-dev-build/specs/auth.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ describe("authentication", () => {
await constructIdentity.waitForExist();
await constructIdentity.click();

// Pass Captcha
const captchaInput = await browser.$("#captchaInput");
await captchaInput.waitForExist();
await captchaInput.setValue("a");
await browser.waitUntil(async () => {
return (await captchaInput.getValue()) === "a";
});

const registerButton = await browser.$("#confirmRegisterButton");
await registerButton.waitForEnabled({ timeout: 30_000 });
await registerButton.click();

await browser.$("h1").waitForExist();
const title = await browser.$("h1");

Expand Down

0 comments on commit 63e29b8

Please sign in to comment.