Wait for context menu

This commit is contained in:
Asher 2024-09-18 18:49:19 -08:00
parent df09d5f607
commit 1676fd99a7
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 0 deletions

View File

@ -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)
})