mirror of
https://github.com/coder/code-server.git
synced 2026-09-26 01:02:27 +02:00
Maybe fix quick input
It seems to type too quickly before the input is visible.
This commit is contained in:
@@ -54,9 +54,9 @@ function runExternalUriTests(proxyEndpointTemplate?: string) {
|
|||||||
await codeServerPage.waitForTestExtensionLoaded()
|
await codeServerPage.waitForTestExtensionLoaded()
|
||||||
await codeServerPage.executeCommandViaMenus("code-server: asExternalUri test")
|
await codeServerPage.executeCommandViaMenus("code-server: asExternalUri test")
|
||||||
|
|
||||||
const inputBox = codeServerPage.page.locator(".quick-input-widget input")
|
await codeServerPage.page.waitForSelector(".quick-input-widget:focus-within")
|
||||||
await inputBox.fill(input)
|
await codeServerPage.page.keyboard.type(input)
|
||||||
await inputBox.press("Enter")
|
await codeServerPage.page.keyboard.press("Enter")
|
||||||
|
|
||||||
// The test extension displays URI.toString(), which also encodes query delimiters.
|
// The test extension displays URI.toString(), which also encodes query delimiters.
|
||||||
const output = `${proxyBase.replace(/\/$/, "")}${suffix}`
|
const output = `${proxyBase.replace(/\/$/, "")}${suffix}`
|
||||||
|
|||||||
@@ -437,6 +437,7 @@ export class CodeServerPage {
|
|||||||
async executeCommandViaMenus(command: string) {
|
async executeCommandViaMenus(command: string) {
|
||||||
await this.navigateMenus(["View", "Command Palette..."])
|
await this.navigateMenus(["View", "Command Palette..."])
|
||||||
|
|
||||||
|
await codeServerPage.page.waitForSelector(".quick-input-widget:focus-within")
|
||||||
await this.page.keyboard.type(command)
|
await this.page.keyboard.type(command)
|
||||||
|
|
||||||
await this.page.hover(`text=${command}`)
|
await this.page.hover(`text=${command}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user