mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 15:59:47 +08:00
* 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>