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 aa04434
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/downloads.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
// Action
await codeServerPage.openContextMenu("text=unique-file.txt")

await coderServerPage.page.waitForSelector(".context-view-block")
expect(await codeServerPage.page.isVisible("text=Download...")).toBe(true)
})

Expand Down Expand Up @@ -72,6 +73,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
// Action
await codeServerPage.openContextMenu("text=unique-file.txt")

await coderServerPage.page.waitForSelector(".context-view-block")
expect(await codeServerPage.page.isVisible("text=Download...")).toBe(false)
})

Expand Down

0 comments on commit aa04434

Please sign in to comment.