Skip to content

Commit a15d241

Browse files
committed
Wait for context menu
1 parent df09d5f commit a15d241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/downloads.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
1818
// Action
1919
await codeServerPage.openContextMenu("text=unique-file.txt")
2020

21-
expect(await codeServerPage.page.isVisible("text=Download...")).toBe(true)
21+
expect(await codeServerPage.page.waitForSelector("text=Download...")).toBe(true)
2222
})
2323

2424
test("should see the 'Show Local' button on Save As", async ({ codeServerPage }) => {
@@ -72,7 +72,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
7272
// Action
7373
await codeServerPage.openContextMenu("text=unique-file.txt")
7474

75-
expect(await codeServerPage.page.isVisible("text=Download...")).toBe(false)
75+
expect(await codeServerPage.page.waitForSelector("text=Download...")).toBe(false)
7676
})
7777

7878
test("should not see the 'Show Local' button on Save as", async ({ codeServerPage }) => {

0 commit comments

Comments
 (0)