LibreChat/e2e/specs
Marco Beretta 07bbbc0d4d 📜 refactor: Declare the Chat Context Contract (#16288)
* refactor: declare the chat context contract

Replace the inferred ReturnType<typeof useChatHelpers> context type with an
explicit ChatContract grouped by responsibility, and move the added-chat
context shape to AddedChatContract. useChatHelpers and useAddedResponse
annotate their memoized value with the contract, and contract.check.ts
asserts two-way equality against the hooks each member is forwarded from.

* test: cover the chat context behaviors with e2e scenarios

* refactor: derive newConversation options from NewConversationParams

useNewConvo now takes the contract's NewConversationOptions instead of
restating the shared params inline, so there is one definition.

* test: skip the added pane scenario where the control is hidden

* refactor: type contract setters as React dispatchers

Keep the chat contract free of Recoil types, and tighten the regenerate
and stop scenarios to assert the regenerated sibling's content and that
the stopped reply stays partial after reload.

(cherry picked from commit 0d4627b387)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16288
2026-10-01 03:46:17 +00:00
..
deployed 📍 test: Add Deployed Smoke Profile (#16135) 2026-09-20 12:34:02 -04:00
email 📧 feat: add email address change (#14597) 2026-10-01 03:46:16 +00:00
mock 📜 refactor: Declare the Chat Context Contract (#16288) 2026-10-01 03:46:17 +00:00
real 🎨 feat: Color the Context Gauge by Category and Collapse its Breakdown (#14855) 2026-08-14 22:46:10 -04:00
a11y.spec.ts ♿ fix: Resolve axe Violations in Sidebar, Tools Dropdown and Footer (#14979) 2026-08-20 11:52:53 -04:00
keys.spec.ts 🪦 refactor: Remove Legacy Code (#10533) 2025-12-11 16:36:12 -05:00
landing.spec.ts 🛟 test: Restore Playwright Smoke E2E (#13020) 2026-05-14 09:49:26 -04:00
messages.spec.ts 🔁 fix: Rerun a Message the Editor Has Not Changed (#15212) 2026-08-25 20:04:02 -04:00
nav.spec.ts 🛟 test: Restore Playwright Smoke E2E (#13020) 2026-05-14 09:49:26 -04:00
popup.spec.ts
settings.spec.ts