Skip to content

Commit

Permalink
Timing issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher committed Sep 19, 2024
1 parent dea5e8d commit f005242
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/e2e/models/CodeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,10 @@ export class CodeServerPage {
// although I am not sure why it presents in the file menu. To work around
// it, left click and open the context menu using Shift+F10 instead.
const el = await this.page.waitForSelector(selector)
await el.click({ button: "left" })
await this.page.keyboard.press("Shift+F10")
// WIP: just seeing if this is a timing issue
await new Promise((r) => setTimeout(r, 1000))
await el.click({ button: "right" })
await new Promise((r) => setTimeout(r, 1000))
await this.page.waitForSelector(".context-view-block")
}

Expand Down

0 comments on commit f005242

Please sign in to comment.