Skip to content

Commit

Permalink
Wait for context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher committed Sep 19, 2024
1 parent df09d5f commit a15d241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/downloads.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
// Action
await codeServerPage.openContextMenu("text=unique-file.txt")

expect(await codeServerPage.page.isVisible("text=Download...")).toBe(true)
expect(await codeServerPage.page.waitForSelector("text=Download...")).toBe(true)
})

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

expect(await codeServerPage.page.isVisible("text=Download...")).toBe(false)
expect(await codeServerPage.page.waitForSelector("text=Download...")).toBe(false)
})

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

0 comments on commit a15d241

Please sign in to comment.