From 882e4f56c10f08a79755d43cecbf7e074acaf5aa Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Mon, 7 Oct 2024 02:27:59 +0000 Subject: [PATCH] copy-and-paste: Remove not required click on all messages narrow. This change might also fix the flaky nature of this test but needs to be tested by running online on CI. --- web/e2e-tests/copy-and-paste.test.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/web/e2e-tests/copy-and-paste.test.ts b/web/e2e-tests/copy-and-paste.test.ts index bc7e6365c9..7461c02531 100644 --- a/web/e2e-tests/copy-and-paste.test.ts +++ b/web/e2e-tests/copy-and-paste.test.ts @@ -129,13 +129,6 @@ async function test_copying_messages_from_several_topics(page: Page): Promise { await common.log_in(page); - await page.click("#left-sidebar-navigation-list .top_left_all_messages"); - let message_list_id = await common.get_current_msg_list_id(page, true); - await page.waitForSelector( - `.message-list[data-message-list-id='${message_list_id}'] .message_row`, - {visible: true}, - ); - await common.send_multiple_messages(page, [ {stream_name: "Verona", topic: "copy-paste-topic #1", content: "copy paste test A"}, @@ -153,7 +146,7 @@ async function copy_paste_test(page: Page): Promise { ]); await page.click("#left-sidebar-navigation-list .top_left_all_messages"); - message_list_id = await common.get_current_msg_list_id(page, true); + const message_list_id = await common.get_current_msg_list_id(page, true); await common.check_messages_sent(page, message_list_id, [ ["Verona > copy-paste-topic #1", ["copy paste test A", "copy paste test B"]], [