summaryrefslogtreecommitdiffhomepage
path: root/packages/app/e2e
diff options
context:
space:
mode:
Diffstat (limited to 'packages/app/e2e')
-rw-r--r--packages/app/e2e/prompt/prompt-history.spec.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/app/e2e/prompt/prompt-history.spec.ts b/packages/app/e2e/prompt/prompt-history.spec.ts
index ec6899814..1c9c07955 100644
--- a/packages/app/e2e/prompt/prompt-history.spec.ts
+++ b/packages/app/e2e/prompt/prompt-history.spec.ts
@@ -108,7 +108,10 @@ test("prompt history restores unsent draft with arrow navigation", async ({ page
await page.keyboard.type(draft)
await wait(page, draft)
- await edge(page, "start")
+ // Clear the draft before navigating history (ArrowUp only works when prompt is empty)
+ await prompt.fill("")
+ await wait(page, "")
+
await page.keyboard.press("ArrowUp")
await wait(page, second)
@@ -119,7 +122,7 @@ test("prompt history restores unsent draft with arrow navigation", async ({ page
await wait(page, second)
await page.keyboard.press("ArrowDown")
- await wait(page, draft)
+ await wait(page, "")
})
})