Skip to content

Commit ebce5ee

Browse files
authored
Double passkeys limit in dashboard (dfinity#3591)
Now that the limit has been doubled in the canister, also double the passkeys limit in the dashboard. # Changes - Increase limit constant from `8` to `16`. - Adjust e2e test for this new limit.
1 parent 8be49f7 commit ebce5ee

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/frontend/src/routes/(new-styling)/manage/(authenticated)/(access-and-recovery)/access/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import { ConfirmAccessMethodWizard } from "$lib/components/wizards/confirmAccessMethod";
4040
import { toaster } from "$lib/components/utils/toaster";
4141
42-
const MAX_PASSKEYS = 8;
42+
const MAX_PASSKEYS = 16;
4343
4444
const { data }: PageProps = $props();
4545

src/frontend/tests/e2e-playwright/dashboard/addPasskeys.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ test("User can add a new passkey and use it with cached identity without clearin
267267
await newPage.close();
268268
});
269269

270-
test("User can log into the dashboard and add up to 7 additional passkeys", async ({
270+
test("User can log into the dashboard and add up to 15 additional passkeys", async ({
271271
page,
272272
}) => {
273273
const auth = dummyAuth();
@@ -297,15 +297,15 @@ test("User can log into the dashboard and add up to 7 additional passkeys", asyn
297297
page.getByRole("listitem").filter({ hasText: "Passkey" }),
298298
).toHaveCount(1);
299299

300-
// Add 7 more passkeys
301-
for (let i = 0; i < 7; i++) {
300+
// Add 15 more passkeys
301+
for (let i = 0; i < 15; i++) {
302302
await addPasskeyCurrentDevice(page, dummyAuth());
303303
}
304304

305-
// Verify we have 8 passkeys
305+
// Verify we have 16 passkeys
306306
await expect(
307307
page.getByRole("listitem").filter({ hasText: "Passkey" }),
308-
).toHaveCount(8);
308+
).toHaveCount(16);
309309

310310
// Verify we cannot add more passkeys
311311
await page.getByRole("button", { name: "Add new" }).click();

0 commit comments

Comments
 (0)