Files
DeepTutor/web
evan188199-tech 386df342cb test(web): smoke ChatWorkspace empty home, streaming turn, failure banner (#1767)
* test(web): smoke ChatWorkspace empty home, streaming turn, failure banner

ChatWorkspace.tsx had 0% unit coverage (DT-21 top-15 gap #2). Mount the
real surface with the ChatStateAdapter mocked at its boundary and stub
the heavy leaf components, then assert:

- empty draft renders the greeting home and bootstraps newSession()
- a first send reaches sendMessage with the composed turn config
- streamed deltas drive message-list/composer streaming flags until done
- submission failure shows the composer-adjacent error banner with a
  working Resend, and the needs-review variant drops the Resend
- an unloadable URL session settles into the retryable failure state

File coverage: 0% -> 50.3% lines (476/947), 47.4% statements.

* docs(evidence): add PR draft for ChatWorkspace smoke tests

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:28:05 +08:00
..
2026-10-04 21:35:00 +08:00
2026-10-04 21:35:00 +08:00
2026-09-29 14:05:32 +02:00
2026-09-21 02:30:40 +08:00
2026-09-22 21:36:27 +08:00
2026-09-24 09:59:56 +08:00