Repository navigation
test(web): exercise chat citations and audio through real browser owners - #46115
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #46115 +/- ##
=======================================
Coverage 90.14% 90.14%
=======================================
Files 6307 6307
Lines 394780 394780
Branches 79187 79187
=======================================
+ Hits 355888 355893 +5
+ Misses 32777 32772 -5
Partials 6115 6115
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hyoban
marked this pull request as ready for review
November 12, 2026 05:09
hyoban
requested review from
CodingOnStar,
iamjoel,
lyzno1 and
zxhlyh
as code owners
November 12, 2026 05:09
lyzno1
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior protected
Rewrites 10 existing rendered Web specs into 8 focused Chromium Browser Mode files. The old fake player callbacks, geometry/observer doubles, repeated disclosure rows, private
closest/measurement assertions, and thin tooltip suites now exercise the real owners. No product code, new feature scenarios, guard allowances, or large assets are added.web/app/components/base/)audio-btn/__tests__/index.spec.tsxnew-audio-button/__tests__/index.spec.tsxchat/chat/citation/__tests__/index.spec.tsxclientWidth/observer doubles. A boundary width catches missing overflow reservation; native Tab/Enter/Space, retained focus, resize, grouped popup dismissal/reopen and public receipt targets replace cleanup spies/test IDs.chat/chat/citation/__tests__/tooltip.spec.tsxchat/chat/citation/__tests__/progress-tooltip.spec.tsxchat/chat/thought/__tests__/index.spec.tsxchat/chat/answer/__tests__/tool-detail.spec.tsxchat/chat/answer/__tests__/reasoning-panel.spec.tsxchat/chat/answer/__tests__/workflow-process.spec.tsxchat/chat/answer/__tests__/agent-content.spec.tsxShared side-effect-free chat, audio and citation presets consolidate the render/query/locale setup, native audio fixtures and route rows. Every retained mock is an immediately documented Next-router or HTTP boundary. Participating owned-module mocks: 2 → 0. All 8 Browser files remain below 500 lines.
Scenario audit and queue
loaded/per-event rows and persistent Loading expectation were fake-engine artifacts: Chromium can emitplayfor the real MediaSource while HTTP bytes are pending. Real decoded playback, native pause/end and error recovery replace those event echoes. No rollback, queued-save, remote-sync or remote-response case was removed.popup.spec.tsx/popup.tsxremain untouched for fix(web): move API error feedback to business flows #45199.web/docs/test.mdalready covers the principles applied here.Validation
--maxWorkers=2; no full local unit/browser suite or concurrent test commands.aecdbfd348; all checks 48 success / 11 configured skips, required 9 success / 2 configured skips. No CI rerun or source-fix round.project/web: green, 90.13% (+0.00 percentage points displayed); patch and every other project context are green. Final API reports are complete with 12/12 sessions. A temporary red status was published with incomplete uploads and resolved after the final session arrived; no empty commit, padding or rerun was used.