From 94f0f9340c360f64d0398648a9547d388ac12b1e Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 30 May 2024 10:11:12 -0700 Subject: [PATCH] e2e-tests: Fix TypeScript noUncheckedIndexedAccess errors. Signed-off-by: Anders Kaseorg --- web/e2e-tests/lib/common.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts index 35b0a03799..5ee4bf22f3 100644 --- a/web/e2e-tests/lib/common.ts +++ b/web/e2e-tests/lib/common.ts @@ -139,8 +139,7 @@ export async function fill_form( async function is_dropdown(page: Page, name: string): Promise { return (await page.$(`select[name="${CSS.escape(name)}"]`)) !== null; } - for (const name of Object.keys(params)) { - const value = params[name]; + for (const [name, value] of Object.entries(params)) { if (typeof value === "boolean") { await page.$eval( `${form_selector} input[name="${CSS.escape(name)}"]`,