fix(FN-3005): preserve card timer across reruns

This commit is contained in:
gsxdsm
2026-04-29 23:13:38 -07:00
parent a3617850f5
commit ffa116a238
20 changed files with 258 additions and 361 deletions

View File

@@ -773,10 +773,9 @@ describe("QuickChatFAB", () => {
const trigger = screen.getByRole("button", { name: "Select model override" });
fireEvent.click(trigger);
// Find a model option and click it. Scope to role="option" because the
// selected model name also renders as a tag in the panel header in model
// mode, so a plain text query would match both.
const option = await screen.findByRole("option", { name: /Claude Sonnet 4\.5/ });
// Find a model option and click it
const optionLabel = await screen.findByText("Claude Sonnet 4.5");
const option = optionLabel.closest('[role="option"]') ?? optionLabel;
fireEvent.click(option);
// Panel should still be visible after selecting the model