Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
drafts: Fix flaky test by waiting for compose box to clear.
evykassirera972804de3b4
diff --git a/frontend_tests/puppeteer_tests/drafts.ts b/frontend_tests/puppeteer_tests/drafts.tsindex ee2ba83462b..cae6ab95f6a 100644--- a/frontend_tests/puppeteer_tests/drafts.ts+++ b/frontend_tests/puppeteer_tests/drafts.ts@@ -244,7 +244,7 @@ async function test_delete_draft_on_sending(page: Page): Promise<void> {console.log("Sending draft.");await page.waitForSelector("#compose-send-button", {visible: true});await page.click("#compose-send-button");- await common.assert_compose_box_content(page, "");+ await page.waitForSelector('xpath///*[@id="compose-textarea" and normalize-space()=""]');await page.waitForSelector(`xpath///*[${common.has_class_x("top_left_drafts")}]//*[${common.has_class_x("unread_count",