Skip to content

test(apps): prove native app rendering in Chromium and draw every UI kit element - #646

Merged
RentnerKev merged 3 commits into
mainfrom
rentner/test/app-ui-native-evidence
Nov 30, 2026
Merged

RentnerKev merged 3 commits into
mainfrom
rentner/test/app-ui-native-evidence

Conversation

@RentnerKev

Copy link
Copy Markdown
Member

Summary

Part of closing #626. I checked its acceptance criteria against the code and tests. Several needed evidence that did not exist; this PR adds it.

Every UI kit element drawn in a test

ui-grid, ui-time and ui-action-menu were never drawn in platform tests. remote-app-view.test.tsx now draws them, and choosing an action menu item sends select to the app. All 27 UI kit elements are now covered.

Chromium, over the real frame transport

The remote UI browser fixture (App Runtime Reference job) gains three pages:

Page What Chromium checks
#dark-de The dark theme and German reach the app (Locale de-DE · Theme dark), and the platform draws around it in German.
#dialog An app whose root is a ui-dialog becomes the platform's own dialog. Focus stays inside while tabbing, Escape closes it, and focus returns to the control that opened it.
#pair Two apps side by side stay apart. Code in one frame cannot read the platform page, the other app's frame, cookies or localStorage. Messages it forges with the other app's binding (a tree batch and a toast) are ignored, and the other app keeps working.

Tests

  • remote-app-view.test.tsx: 4 pass locally.
  • The fixture host and app bundle locally (Bun.build). Typecheck and both oxlint configs are clean.
  • Not run locally: the Chromium fixture itself, because Playwright's Chromium is not installed here. It runs in the App Runtime Reference job on this PR.

🤖 Generated with Claude Code

…kit element

Part of closing #626. Checking its acceptance criteria showed missing
evidence; this adds it.

- remote-app-view: grids, times and action menus are now drawn in a
  test, so all 27 UI kit elements are covered; choosing an action menu
  item reaches the app.
- The remote UI browser fixture gains three pages. Chromium checks:
  - dark theme and German: the context reaches the app, and the platform
    draws around it in German;
  - an app whose root is a dialog is the platform's dialog: focus stays
    inside while tabbing, Escape closes it, and focus returns to the
    control that opened it;
  - two apps side by side stay apart; app code cannot read the platform
    page, the other app's frame, cookies or storage; messages it forges
    with the other app's binding are ignored, and the other app keeps
    working.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 394e53f and afc3899.

Files selected for processing: 4

  • web/src/tests/features/AppUi/remote-app-view.test.tsx
  • web/src/tests/fixtures/remote-ui-browser/app/app.mts
  • web/src/tests/fixtures/remote-ui-browser/browser.mts
  • web/src/tests/fixtures/remote-ui-host/host.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@RentnerKev
RentnerKev merged commit 50cb495 into main Nov 30, 2026
29 checks passed
@RentnerKev
RentnerKev deleted the rentner/test/app-ui-native-evidence branch November 30, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant