eslint: Fix @typescript-eslint/no-confusing-void-expression.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-12-21 16:00:27 -08:00
parent 3fde4f977d
commit 6368cf17cb
16 changed files with 66 additions and 40 deletions

View File

@@ -112,10 +112,9 @@ async function test_narrow_to_private_messages_with_cordelia(page: Page): Promis
const you_and_cordelia_selector =
'*[data-tippy-content="Go to direct messages with Cordelia, Lear\'s daughter"]';
// For some unknown reason page.click() isn't working here.
await page.evaluate(
(selector: string) => document.querySelector<HTMLElement>(selector)!.click(),
you_and_cordelia_selector,
);
await page.evaluate((selector: string) => {
document.querySelector<HTMLElement>(selector)!.click();
}, you_and_cordelia_selector);
const cordelia_user_id = await common.get_user_id_from_name(page, "Cordelia, Lear's daughter");
const pm_list_selector = `li[data-user-ids-string="${cordelia_user_id}"].dm-list-item.active-sub-filter`;
await page.waitForSelector(pm_list_selector, {visible: true});