puppeteer_tests: Migrate deprecated waitFor call to waitForFunction.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-09-26 02:48:37 -07:00
committed by Tim Abbott
parent e4931c5bc4
commit f033d5c3c5

View File

@@ -240,7 +240,7 @@ class CommonUtils {
} }
async wait_for_fully_processed_message(page, content) { async wait_for_fully_processed_message(page, content) {
await page.waitFor( await page.waitForFunction(
(content) => { (content) => {
/* /*
The tricky part about making sure that The tricky part about making sure that