feat(FN-4437): add scroll coverage cross-reference tests to QuickChatFAB

Adds scroll coverage tests for QuickChatFAB's initial-open behavior in the dashboard component test suite.

Fusion-Task-Id: FN-4437
This commit is contained in:
Fusion
2026-05-14 00:07:29 -07:00
committed by gsxdsm
parent e663a1d41c
commit 91da03d3b4

View File

@@ -888,6 +888,8 @@ describe("QuickChatFAB session-first UX", () => {
});
});
// FN-4437 coverage note: initial-open snap-to-bottom regression coverage lives in
// both paths below — controlled open transition (FN-3945) and uncontrolled FAB open (FN-4095).
it("FN-3945: snaps to bottom on controlled initial open (open=false -> open=true) with an active session already loaded", async () => {
mockFetchChatMessages.mockResolvedValueOnce({
messages: [{ id: "msg-open", sessionId: "session-model", role: "assistant", content: "Loaded", createdAt: new Date().toISOString() }],