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: Fix a flake in 02-message-basics.js.

Priyank Patel8391250e60b6
diff --git a/frontend_tests/puppeteer_lib/common.js b/frontend_tests/puppeteer_lib/common.js
index 7684136b9c4..e9cb62ffe02 100644
--- a/frontend_tests/puppeteer_lib/common.js
+++ b/frontend_tests/puppeteer_lib/common.js
@@ -157,6 +157,10 @@ class CommonUtils {
re-rendered based on server info?
*/
const last_msg = current_msg_list.last();
+ if (last_msg === undefined) {
+ return false;
+ }
+
if (last_msg.raw_content !== content) {
return false;
}