commit eae372ebfeba4633db8be840400744e19dd54b13
parent 2efb49c6bd4d8acc72684cd9e25f9c44ad86bbd5
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 25 Sep 2026 16:44:44 -0400
export: ask-chat's reload test submits the restored search before checking grounding
The "Load context persists" test reloaded /ask and expected the live search
restored from localStorage to be running again. A restored search now waits
for the visitor, so the test runs it with the Search button first; the
enrichment-persists and strict-grounding assertions are unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/export/e2e/ask-chat.spec.ts b/export/e2e/ask-chat.spec.ts
@@ -531,10 +531,12 @@ test.describe("ask chat", () => {
// Persists across a reload (enrichment stored in the conversation; the live
// search restored from localStorage). The key is only saved on send, so
- // re-enter it after reloading.
+ // re-enter it after reloading. A restored search loads into the bar but
+ // does not run until the visitor submits it (release 8 slice E), so run it.
await page.waitForTimeout(600);
await page.reload();
await keyIn(page);
+ await page.getByTestId("search-submit").click();
await expect(page.getByText(/Grounded in 1 result/)).toBeVisible();
await page.getByRole("button", { name: /Show the 1 video/ }).click();
await expect(page.getByText(/2 excerpts/)).toBeVisible();