summaryrefslogtreecommitdiffhomepage
path: root/packages/app/e2e
diff options
context:
space:
mode:
authorLuke Parker <[email protected]>2026-03-19 09:54:01 +1000
committerGitHub <[email protected]>2026-03-19 09:54:01 +1000
commit5d2f8d77f964d7be6b9c9e0602f0eb6bb68993b9 (patch)
tree4677a8eb6e6d093579489bcd71c9dd812aca0da1 /packages/app/e2e
parent81be544981d04cc48b2aa5193c1b2b7096ec8bc4 (diff)
downloadopencode-5d2f8d77f964d7be6b9c9e0602f0eb6bb68993b9.tar.gz
opencode-5d2f8d77f964d7be6b9c9e0602f0eb6bb68993b9.zip
fix: restore recent test regressions and upgrade effect beta (#18158)
Diffstat (limited to 'packages/app/e2e')
-rw-r--r--packages/app/e2e/prompt/prompt-multiline.spec.ts18
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/app/e2e/prompt/prompt-multiline.spec.ts b/packages/app/e2e/prompt/prompt-multiline.spec.ts
index 216aa3fda..3584773bb 100644
--- a/packages/app/e2e/prompt/prompt-multiline.spec.ts
+++ b/packages/app/e2e/prompt/prompt-multiline.spec.ts
@@ -7,12 +7,18 @@ test("shift+enter inserts a newline without submitting", async ({ page, gotoSess
await expect(page).toHaveURL(/\/session\/?$/)
const prompt = page.locator(promptSelector)
- await prompt.click()
- await page.keyboard.type("line one")
- await page.keyboard.press("Shift+Enter")
- await page.keyboard.type("line two")
+ await prompt.focus()
+ await expect(prompt).toBeFocused()
+
+ await prompt.pressSequentially("line one")
+ await expect(prompt).toBeFocused()
+
+ await prompt.press("Shift+Enter")
+ await expect(page).toHaveURL(/\/session\/?$/)
+ await expect(prompt).toBeFocused()
+
+ await prompt.pressSequentially("line two")
await expect(page).toHaveURL(/\/session\/?$/)
- await expect(prompt).toContainText("line one")
- await expect(prompt).toContainText("line two")
+ await expect.poll(() => prompt.evaluate((el) => el.innerText)).toBe("line one\nline two")
})