Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

e2e-tests: Replace deprecated MouseOptions.clickCount.

Anders Kaseorg7abc9269a699
diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts
index 08b2c4885d7..febe643b5f7 100644
--- a/web/e2e-tests/lib/common.ts
+++ b/web/e2e-tests/lib/common.ts
@@ -118,7 +118,7 @@ export async function page_url_with_fragment(page: Page): Promise<string> {
// replace it with the text.
export async function clear_and_type(page: Page, selector: string, text: string): Promise<void> {
// Select all text currently in the element.
- await page.click(selector, {clickCount: 3});
+ await page.click(selector, {count: 3});
await page.keyboard.press("Delete");
await page.type(selector, text);
}