mirror of https://github.com/zulip/zulip.git
e2e-tests: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ed5f1455f2
commit
94f0f9340c
|
@ -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)}"]`,
|
||||
|
|
Loading…
Reference in New Issue