From 5a0ea924ff82f9a5c1ecb6d55869a28856729876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Wed, 25 Nov 2026 17:59:00 +0100 Subject: [PATCH] Reference e2e setup clears the 2FA counter under the site's own key prefix (iapl) The reference site has storageNames: 'iapl'; the setup cleared only ipal:2fa-verify:*, so attempts of one e2e run counted against the next (found by the Turbopack run after the webpack run). Co-Authored-By: Claude Fable 5.2 --- reference/e2e/create-test-admin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/e2e/create-test-admin.ts b/reference/e2e/create-test-admin.ts index 0ed5f9b..cceec85 100644 --- a/reference/e2e/create-test-admin.ts +++ b/reference/e2e/create-test-admin.ts @@ -29,6 +29,8 @@ for (const address of [email, secondTestAdmin(email)]) { const doc = found.docs[0] ? await payload.update({ id: found.docs[0].id, collection: 'users', data: data as never, overrideAccess: true }) : await payload.create({ collection: 'users', data: data as never, overrideAccess: true }) + // this site counts under the `iapl` prefix (payload.config.ts: storageNames: 'iapl'); the old key too, for a database from before + await payload.kv.delete(verifyLimitKey('users', String(doc.id), 'iapl')) await payload.kv.delete(verifyLimitKey('users', String(doc.id))) console.log(`[e2e] test admin ready: ${address}`) }