Skip to content

Commit ae9e8c5

Browse files
committed
Maybe fix quick input
It seems to type too quickly before the input is visible.
1 parent 2d12f79 commit ae9e8c5

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎test/e2e/extensions.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ function runExternalUriTests(proxyEndpointTemplate?: string) {
5454
await codeServerPage.waitForTestExtensionLoaded()
5555
await codeServerPage.executeCommandViaMenus("code-server: asExternalUri test")
5656

57-
const inputBox = codeServerPage.page.locator(".quick-input-widget input")
58-
await inputBox.fill(input)
59-
await inputBox.press("Enter")
57+
await codeServerPage.page.waitForSelector(".quick-input-widget:focus-within")
58+
await codeServerPage.page.keyboard.type(input)
59+
await codeServerPage.page.keyboard.press("Enter")
6060

6161
// The test extension displays URI.toString(), which also encodes query delimiters.
6262
const output = `${proxyBase.replace(/\/$/, "")}${suffix}`

‎test/e2e/models/CodeServer.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ export class CodeServerPage {
437437
async executeCommandViaMenus(command: string) {
438438
await this.navigateMenus(["View", "Command Palette..."])
439439

440+
await codeServerPage.page.waitForSelector(".quick-input-widget:focus-within")
440441
await this.page.keyboard.type(command)
441442

442443
await this.page.hover(`text=${command}`)

0 commit comments

Comments
 (0)