Skip to content

Commit 1576441

Browse files
committed
Use keyboard to type external uri
Not sure why but somehow the chat window input is getting filled instead of the quick input widget. Maybe waiting for the selector and then typing will fix it.
1 parent 2d12f79 commit 1576441

1 file changed

Lines changed: 3 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")
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}`

0 commit comments

Comments
 (0)