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.

puppeteer_tests: Migrate deprecated waitFor call to waitForFunction.

Anders Kaseorgf033d5c3c5fb
diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.js
index 85499219451..17261b4afdd 100644
--- a/frontend_tests/puppeteer_lib/common.js
+++ b/frontend_tests/puppeteer_lib/common.js
@@ -240,7 +240,7 @@ class CommonUtils {
}
async wait_for_fully_processed_message(page, content) {
- await page.waitFor(
+ await page.waitForFunction(
(content) => {
/*
The tricky part about making sure that