Maybe fix quick input

It seems to type too quickly before the input is visible.
This commit is contained in:
Asher
2026-09-25 14:16:55 -08:00
parent 2d12f799b7
commit ae9e8c54df
2 changed files with 4 additions and 3 deletions

View File

@@ -54,9 +54,9 @@ function runExternalUriTests(proxyEndpointTemplate?: string) {
await codeServerPage.waitForTestExtensionLoaded()
await codeServerPage.executeCommandViaMenus("code-server: asExternalUri test")
const inputBox = codeServerPage.page.locator(".quick-input-widget input")
await inputBox.fill(input)
await inputBox.press("Enter")
await codeServerPage.page.waitForSelector(".quick-input-widget:focus-within")
await codeServerPage.page.keyboard.type(input)
await codeServerPage.page.keyboard.press("Enter")
// The test extension displays URI.toString(), which also encodes query delimiters.
const output = `${proxyBase.replace(/\/$/, "")}${suffix}`

View File

@@ -437,6 +437,7 @@ export class CodeServerPage {
async executeCommandViaMenus(command: string) {
await this.navigateMenus(["View", "Command Palette..."])
await codeServerPage.page.waitForSelector(".quick-input-widget:focus-within")
await this.page.keyboard.type(command)
await this.page.hover(`text=${command}`)