Apply patch [skip ci]

This commit is contained in:
open-swe-dev-andrinoid[bot] 2026-01-21 14:43:41 +00:00
parent d3052a5528
commit 26de468f5a

View File

@ -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<string, string>;
const userId: string = userIdMap[userKey] ?? userKey;
await page.addInitScript(({ id }: { id: string }) => {
(window as { __E2E_SKIP_ENCRYPTION__?: boolean }).__E2E_SKIP_ENCRYPTION__ =
true;