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: wait for visibility before click -- admin test.

Dinesh6dc25473368a
diff --git a/frontend_tests/puppeteer_tests/08-admin.js b/frontend_tests/puppeteer_tests/08-admin.js
index 77c78a22c12..ca755ff4c2b 100644
--- a/frontend_tests/puppeteer_tests/08-admin.js
+++ b/frontend_tests/puppeteer_tests/08-admin.js
@@ -47,6 +47,7 @@ async function test_change_new_stream_notifications_setting(page) {
const disable_stream_notifications =
"#realm_notifications_stream_id_widget .dropdown_list_reset_button";
+ await page.waitForSelector(disable_stream_notifications, {visible: true});
await page.click(disable_stream_notifications);
await submit_notifications_stream_settings(page);
}