From 26de468f5a6334fe821d975abe8c037c828629ca Mon Sep 17 00:00:00 2001 From: "open-swe-dev-andrinoid[bot]" Date: Wed, 21 Jan 2026 14:43:41 +0000 Subject: [PATCH] Apply patch [skip ci] --- tests/e2e/helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/helpers.ts b/tests/e2e/helpers.ts index db0809f..388a5c9 100644 --- a/tests/e2e/helpers.ts +++ b/tests/e2e/helpers.ts @@ -4,7 +4,7 @@ const FIXED_TIME_MS = new Date("2024-01-01T00:00:00.000Z").getTime(); export async function applyDeterministicPage(page: Page) { await page.addInitScript( - ({ now }) => { + ({ now }: { now: number }) => { Math.random = () => 0.42; const OriginalDate = Date; @@ -77,8 +77,8 @@ export async function useE2EUser(page: Page, userKey: string) { landlord: "e2e-landlord-1", "landlord-onboarding": "e2e-landlord-setup-1", tenant: "e2e-tenant-1", - }; - const userId = userIdMap[userKey] ?? userKey; + } as Record; + const userId: string = userIdMap[userKey] ?? userKey; await page.addInitScript(({ id }: { id: string }) => { (window as { __E2E_SKIP_ENCRYPTION__?: boolean }).__E2E_SKIP_ENCRYPTION__ = true;