Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppeteer: Generate a trusted click event to avoid regressions.
apoorvapendsef8c22dc8e6c9
diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.tsindex 147565a9aa9..740bc8df9e7 100644--- a/web/e2e-tests/lib/common.ts+++ b/web/e2e-tests/lib/common.ts@@ -601,12 +601,7 @@ export async function select_item_via_typeahead();assert.ok(entry);await entry.hover();- await page.evaluate((entry) => {- if (!(entry instanceof HTMLElement)) {- throw new TypeError("expected HTMLElement");- }- entry.click();- }, entry);+ await entry.click();}export async function wait_for_modal_to_close(page: Page): Promise<void> {