Skip to content

Commit f005242

Browse files
committed
Timing issue?
1 parent dea5e8d commit f005242

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/e2e/models/CodeServer.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,10 @@ export class CodeServerPage {
564564
// although I am not sure why it presents in the file menu. To work around
565565
// it, left click and open the context menu using Shift+F10 instead.
566566
const el = await this.page.waitForSelector(selector)
567-
await el.click({ button: "left" })
568-
await this.page.keyboard.press("Shift+F10")
567+
// WIP: just seeing if this is a timing issue
568+
await new Promise((r) => setTimeout(r, 1000))
569+
await el.click({ button: "right" })
570+
await new Promise((r) => setTimeout(r, 1000))
569571
await this.page.waitForSelector(".context-view-block")
570572
}
571573

0 commit comments

Comments
 (0)