Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
e2e-tests: Fix TypeScript noUncheckedIndexedAccess errors.
Anders Kaseorg94f0f9340c36
diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.tsindex 35b0a037990..5ee4bf22f33 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<boolean> {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)}"]`,