mirror of https://github.com/coder/code-server.git
Wait for context menu
This commit is contained in:
parent
df09d5f607
commit
1676fd99a7
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue