Repository navigation
test: verify remote rendering in Chromium over the real frame transport - #637
Merged
Merged
Conversation
…ransport Slice 6 of #626, first part. A React app built with @rentnerproxy/app-ui 1.8.0 runs in the real sandboxed frame with the real asset policy, and the platform draws its tree with its own components. Chromium checks: - the frame is opaque, hidden and out of the focus order, and the tree appears in the platform page; - a press reaches the app, which updates its badge and asks for a toast; - tabs switch in the platform and the held form draft is saved by the app; - keyboard focus moves through the drawn controls and never enters the frame; - a batch the catalog rejects, sent past the SDK's checks, retires the frame; - a new frame document connects with a new session and draws again. The frame session moves from AppUiFrame into AppFrameView, which takes the theme, operations, dialogs and the end of the session as props, so the fixture and the planned dev host use the same component. A frame that renders remotely is hidden with the hidden attribute, which works without a stylesheet. The check runs as a job of App Runtime Reference whenever web inputs change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Knip reads the workflow's run commands as entries, so calling browser.mts directly made it report @playwright/test, which only the fixture's own package declares. A script under .github/scripts/ci/fixtures installs the dependencies and Chromium and runs the fixture, like the greeting fixture's script does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
First part of slice 6 of #626: browser tests over the real frame transport.
The setup:
@rentnerproxy/app-ui1.8.0 runs in the real sandboxed frame, served with the realappUiAssetPolicyand admin security headers.Chromium checks:
opaque-hidden-frameself.originisnull), hidden and hastabindex="-1".platform-drawn-treeevent-round-trip-and-toasttabs-and-held-form-draftfocus-stays-out-of-framerejected-batch-retires-framenew-frame-new-sessionChanges
AppFrameView: the frame session moves out ofAppUiFrameintofeatures/AppUi/Components/AppFrameView.tsx. It takes the theme, operations, dialogs and the end of the session as props, so this fixture and the planned dev host use exactly the platform's component.AppUiFramekeeps the inventory, the gateway call with the frame token and the platform dialogs.hiddenattribute instead of a Tailwind class, so it stays hidden even where no stylesheet applies.web/src/tests/fixtures/remote-ui-browserholds the Playwright runner and the app. It is a package of its own with@playwright/test,@rentnerproxy/app-ui, React and a lockfile.web/src/tests/fixtures/remote-ui-host, outside that package, so it bundles the platform's React and not the app's..mtsand stay out of the root typecheck.Remote UI browser fixturejob in App Runtime Reference runs whenever web inputs change, because the renderer and its shared components are web code. It uploads the check report.Next in slice 6
AppFrameView.Checks
bun run typecheck,bun run lint(including the type-aware pass)🤖 Generated with Claude Code