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.

stars: Fix flaky test due to message list not yet rendered.

Aman Agrawal97e3015ec126
diff --git a/web/e2e-tests/stars.test.ts b/web/e2e-tests/stars.test.ts
index b3b8d026baa..c48d9ba1a4d 100644
--- a/web/e2e-tests/stars.test.ts
+++ b/web/e2e-tests/stars.test.ts
@@ -34,7 +34,11 @@ async function test_narrow_to_starred_messages(page: Page): Promise<void> {
// Go back to the combined feed view.
await page.click("#left-sidebar-navigation-list .top_left_all_messages");
- await page.waitForSelector(".message-list .message_row", {visible: true});
+ const combined_feed_id = await common.get_current_msg_list_id(page, true);
+ await page.waitForSelector(
+ `.message-list[data-message-list-id='${combined_feed_id}'] .message_row`,
+ {visible: true},
+ );
}
async function stars_test(page: Page): Promise<void> {