From 1676fd99a7dee4bcaddd3bc91ef9072e96ec2e20 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 18 Sep 2024 18:49:19 -0800 Subject: [PATCH] Wait for context menu --- test/e2e/downloads.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/downloads.test.ts b/test/e2e/downloads.test.ts index 0adcd68ff..75b3d713f 100644 --- a/test/e2e/downloads.test.ts +++ b/test/e2e/downloads.test.ts @@ -18,6 +18,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => { // Action await codeServerPage.openContextMenu("text=unique-file.txt") + await codeServerPage.page.waitForSelector(".context-view-block") expect(await codeServerPage.page.isVisible("text=Download...")).toBe(true) }) @@ -72,6 +73,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d // Action await codeServerPage.openContextMenu("text=unique-file.txt") + await codeServerPage.page.waitForSelector(".context-view-block") expect(await codeServerPage.page.isVisible("text=Download...")).toBe(false) })