Repository navigation
Test: Run rendered browser behavior in Vitest Browser Mode - #80995
Merged
Merged
Conversation
18 of 41 tasks
|
Size Change: +26 B (0%) Total Size: 7.71 MB 📦 View Changed
|
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
from
July 30, 2026 23:47
58ecf75 to
59f56a3
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
July 30, 2026 23:48
d779272 to
86413d3
Compare
|
Flaky tests detected in 827cc90. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/31577736315 As a user I want to be able to create a navigation overlay for a specific navigation block in
|
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
from
July 31, 2026 00:38
59f56a3 to
8a81022
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
July 31, 2026 00:38
86413d3 to
1551ea0
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
from
July 31, 2026 01:12
8a81022 to
6093aa4
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
2 times, most recently
from
July 31, 2026 01:20
9529651 to
d5e3139
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
July 31, 2026 02:57
4e3dd77 to
3eec742
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
2 times, most recently
from
July 31, 2026 19:21
212550f to
d0b6013
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
July 31, 2026 19:21
3eec742 to
8f70fba
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
from
July 31, 2026 19:36
d0b6013 to
ff71976
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
July 31, 2026 19:36
8f70fba to
7ce22c8
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
from
July 31, 2026 19:46
ff71976 to
34a139f
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
July 31, 2026 19:46
7ce22c8 to
3b5ef70
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
from
July 31, 2026 20:01
34a139f to
ace2c35
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
July 31, 2026 20:01
3b5ef70 to
474050f
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-04-test-migration
branch
from
August 11, 2026 23:31
ace2c35 to
9fb4115
Compare
ciampo
force-pushed
the
codex/vitest-consolidated-05-browser-mode
branch
from
August 11, 2026 23:31
474050f to
ee36f98
Compare
Contributor
Author
|
The Node 26 failure exposed a test-isolation bug: this test could start a real I will merge once CI checks are green |
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.
Part of #80855.
What?
Move rendered CSS, browser API, focus, and native interaction coverage from jsdom to 89 colocated Vitest Browser Mode suites.
Why?
jsdom remains useful for DOM semantics and component logic, but it cannot prove browser rendering, layout, focusability, viewport behavior, scrolling, or native input.
How?
Run the migrated suites in a separate Chromium CI job, load the production CSS each assertion needs, and keep non-rendered behavior in jsdom. Remove the synthetic visibility and geometry setup that these browser tests replace.
Migration details
vitest-browser-react; convention checks prevent the Testing Library React renderer from returning.getClientRectspolyfill, and the remaining@ariakit/testdependencies are removed.Historical local benchmarks
Three consecutive warm full-suite runs on the same machine showed the following medians. The suite grew between measurements, so this is not an identical-test-set benchmark.
For 244 exact-name-matched tests across 26 corresponding files, the warm Browser Mode wall-time median was 6.46s compared with 5.06s in jsdom. Both used Vitest 5.0.0 and Node 24.20.0.
Testing Instructions
npm run test:unit:routing.npm run test:unit:conventions.npm run test:unit:vitest -- --project=browser.npm run test:unit:vitest:shuffled -- --project=browser.Keyboard coverage
No production UI is added. Browser tests exercise Tab, arrow keys, Enter, Escape, focus movement, caret positioning, and pointer input across the migrated interfaces.
Use of AI Tools
Codex assisted with implementation and verification. The author reviewed the changes and Browser output.