diff --git a/dashboard/tests/e2e/integration/integration.spec.ts b/dashboard/tests/e2e/integration/integration.spec.ts index de1edfc..5b3ef18 100644 --- a/dashboard/tests/e2e/integration/integration.spec.ts +++ b/dashboard/tests/e2e/integration/integration.spec.ts @@ -87,9 +87,12 @@ test('end-to-end: app + domain + script + route via dashboard → invoke via pub }); test('api key minted via dashboard works as a CLI bearer, then revoke disables it', async ({ - page + page, + uniqueUsername }) => { - const name = `e2e-cli-${Date.now()}`; + // Worker-aware unique helper instead of Date.now() — keeps two + // workers from minting the same name on the same millisecond. + const name = uniqueUsername('cli'); // 1. Mint the key from /profile and capture the revealed token. await page.goto('/admin/profile');