Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
devswha
force-pushed
the
test/react-dom-tests-components-3
branch
from
November 26, 2026 18:49
bd5c07d to
b017331
Compare
…er and drop it Last step: the 37 component tests from PromptCard to review-client-p12 render with react-dom into the happy-dom page (src/lib/page.fixture.ts) and act through the DOM. No test imports react-test-renderer any more, so it and @types/react-test-renderer leave package.json and bun.lock. Each file keeps its test names, test count and expect() count; across all 171 migrated files that is 2725 tests, the same as before the series.
- RowMenu, RelayShell, RelayPairingPrompt: stub geometry on the page's own elements and restore the files' own globals in finally; the page restores shared prototypes. - StrictModePanel: nothing forbidden may show anywhere in the document, portals included. - WorktreeDialog: a fresh create request starts before the repository changes, and only that request is answered. - Visualization: pending work runs while the fake transport is installed before checking that no request went out. - VouchedPcApproval: put back the account module it mocks.
#4615 added this test on react-test-renderer while the migration was under way. Its KeyId checks read the id and label from the rendered group, and the pairing window's CustomEvent announcements dispatch through the page's own event classes.
#4073 added this test on react-test-renderer while the migration was under way. It renders into the happy-dom page, presses Download as a real click, and gives the home-screen cases the page navigator's standalone and share sheet.
devswha
force-pushed
the
test/react-dom-tests-components-1
branch
from
November 26, 2026 19:28
67af8f5 to
6ad73a9
Compare
devswha
force-pushed
the
test/react-dom-tests-components-3
branch
from
November 26, 2026 19:28
b017331 to
25ef895
Compare
This branch has not been deployed
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.
What
Last of four PRs moving the
src/tests off the deprecatedreact-test-renderer(after #4815 and #4816, merged, and #4829). Stacked on #4829: retarget to main after it merges. It moves the 37 component tests fromPromptCardtoreview-client-p12, plusMachineDialog.progress(#4811),RelayPanel.compact(#4615) andFileViewer.save(#4073), all added on react-test-renderer while this series was under way,, to the happy-dom page and removesreact-test-rendererand@types/react-test-rendererfrom package.json and bun.lock. Nothing in the repository names react-test-renderer any more.Test meaning
Every file keeps its test names, order and test count (checked per file against origin/main);
expect()counts are equal or higher where the review added checks. Across all 174 migrated files the series keeps 2742 tests, file for file the same as current main. Shifts worth a look:StrictModePanel: nothing forbidden may show anywhere in the document, portals included (the old renderer drew portals inline).WorktreeDialog: a fresh create request must start before the repository changes, and only that request is answered.Visualization: pending work runs while the fake transport is installed before checking that no request went out.RelayShell: three notice components are checked through DOM markers; link taps throughdefaultPreventedon the real click. Includes main's newer offline test from fix(relay): ask the account service before saying the device is offline #4810, and feat(relay): put the dash into a typed pairing code after the first five characters #4614's check that the pairing-code field is wired totypePairCode/endPairCodeComposition(read through the fixture'sreactProps, as those are props the DOM cannot show; also inRelayShellScreens).RelayPanel.compact:KeyId's id and label are read from its rendered group (role="group",aria-label, the group spans); the pairing window'sCustomEventannouncements dispatch through the page's own event classes.VoiceInput: fix(shortcuts): let Hold message in chat and Dictate (hold) be turned off #4793's shortcut test presses Ctrl+Shift+Space as real KeyboardEvents on the page's window.TextFileEditor: the unsaved-changes warning is checked as a cancelledbeforeunloadevent.Validation
bun run typecheck: pass.PortalAuththenSettingsControlsin one process, both orders: pass (the order case the Codex review reproduced).bun run check fast(this PC above 85% CPU); CI's Fast checks runs it.No user-visible change, so no changelog fragment.