From 7bddb03d0d8c33dd8f0233efc4eef204a929461e Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Mon, 16 Nov 2026 02:26:28 -0500 Subject: [PATCH] Research test: the panel's Esc is a button now Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab --- e2e/research.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/research.spec.ts b/e2e/research.spec.ts index 8286ad1..4bc8003 100644 --- a/e2e/research.spec.ts +++ b/e2e/research.spec.ts @@ -30,7 +30,9 @@ test("/research shows its searches and pages, writes a section, and links its cl const panel = page.locator(".agent-panel"); await expect(panel).toBeVisible(); await expect(panel).toHaveAttribute("data-agent", "running"); - await expect(panel.locator(".agent-head")).toContainText("Esc stops"); + await expect(panel.locator(".agent-head")).toContainText("researching on the web"); + // Esc stops it, and says so as a button that presses Esc. + await expect(panel.locator('.agent-head .key[data-key="Escape"]')).toHaveCount(1); await expect(panel.locator(".agent-steps")).toContainText("searched “how tides work”: 3 results"); await expect(panel.locator(".agent-steps")).toContainText("read “How tides work” · example.org"); await expect(panel).toHaveAttribute("data-agent", "done");