From f19d71d006c1bbfd26a28bc7dff80efb523046ee Mon Sep 17 00:00:00 2001 From: ybai08 <271969568+ybai08@users.noreply.github.com> Date: Sun, 11 Oct 2026 18:38:09 -0500 Subject: [PATCH] test(dashboard): pick an open chat's other mode the way the menu lists it now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit d40290105 made an open chat's mode menu list both modes as radio items, the other one tagged "New chat", in place of a "Start a new chat in … mode" item. The mode picker's own tests moved with it; the dashboard test that walks the same menu still looked for the old item and has failed on dev since. --- .../frontend/src/features/dashboard/dashboard-page.test.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/surfsense_local/frontend/src/features/dashboard/dashboard-page.test.tsx b/surfsense_local/frontend/src/features/dashboard/dashboard-page.test.tsx index 46b2eeb9da..d17d5d5a86 100644 --- a/surfsense_local/frontend/src/features/dashboard/dashboard-page.test.tsx +++ b/surfsense_local/frontend/src/features/dashboard/dashboard-page.test.tsx @@ -1115,10 +1115,9 @@ describe("dashboard chat", () => { await user.click( within(conversation).getByRole("button", { name: /^Chat mode Basic/ }) ) + // An open chat lists both modes; the other one opens a new chat. await user.click( - await screen.findByRole("menuitem", { - name: /^Start a new chat in Agentic mode/, - }) + await screen.findByRole("menuitemradio", { name: /^Agentic/ }) ) expect(