Repository navigation
test(web): exercise shared controls through real browser owners - #46099
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #46099 +/- ##
==========================================
- Coverage 90.14% 90.14% -0.01%
==========================================
Files 6307 6307
Lines 394780 394778 -2
Branches 79187 79187
==========================================
- Hits 355886 355866 -20
- Misses 32777 32795 +18
Partials 6117 6117
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 02:14
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.
This test-only batch replaces old engine/callback doubles with real Browser Mode behavior across console controls. Seven existing rendered unit suites move into Browser coverage (Sort joins and improves its existing Browser owner). The theme selector's separate SSR HTML contract stays in unit.
Per-file improvements:
base/carousel/__tests__/index.spec.tsxbase/infinite-scroll-sentinel/__tests__/index.spec.tsxbase/sort/__tests__/index.spec.tsx+ existing Browser ownerbase/keyboard-sortable/__tests__/use-keyboard-sortable.spec.tsxcredential-selector/__tests__/index.spec.tsxbase/date-time-picker/__tests__/localization.spec.tsx.click()and negative callback assertion.features/theme/__tests__/theme-selector.spec.tsxEvery Browser file stays below 500 lines, with no owned-module mocks, forced interactions or real network. No production change, new feature coverage or gap backfill is included. The batch deliberately stays below 10 source suites: PAT remediation and its required guard deletions are deferred while #46058 occupies the policy file. No guard allowance is added or changed.
Redundant render/option/ref/listener/cleanup/callback rows were merged or dropped. No race, rollback, queued-save, remote-sync or remote-response case was deleted. Existing keyboard permission/prop replacement and current callback behavior are preserved.
Validation on latest main: 7 focused Browser files / 21 tests, 1 SSR unit test, the Browser policy guard, complete root
vp run -w check, Web type-check and the normal commit hook pass. The TimePicker caller's nullable value type was corrected after the initial type-check, then the check passed. No full local Vitest suite, dev server or watcher was started; Browser workers were capped at two, unit at four.Sequential production mutations: 9/9 caught — carousel movement/axis, intersection preloading/current callback, selected sort field, saved keyboard order, credential selection, picker locale and real theme persistence. Every production target was restored byte-for-byte.
Follow-ups: Notion page-tree expansion/preview are deferred after a temporary Chromium probe confirmed that native Tab skips their click-only div controls. Tracking issue: #46100. The existing row suite carries the migration TODO; that comment-only change is not counted as cleanup work. No guide change is needed:
web/docs/test.mdalready covers the principles used here.Final CI: head
bc3d1f3e51normally merges latest mainb97da5a2c4. The main pipeline 43040637932 passed; required checks are 9 success / 2 configured skips. Web static/types, all four unit shards, both Browser shards, build/bundle comparison and E2E passed without a flaky-job rerun or CI fix round. Codecovproject/webis green at 90.14% (+0.00% displayed versus b97da5a); all five project contexts are green. The optionalcodecov/patchcheck is still in progress even though the public API reports complete coverage with 12 sessions and zero coverable patch lines. This publication state is reported as pending; no empty commit, padding or workflow rerun was used.