Skip to content

test(naked_ui): run the test suite on the web - #322

Open
leoafarias wants to merge 1 commit into
mainfrom
test/naked-ui-web-tests
Open

leoafarias wants to merge 1 commit into
mainfrom
test/naked-ui-web-tests

Conversation

@leoafarias

Copy link
Copy Markdown
Collaborator

Description

packages/naked_ui/flutter_test_config.dart sat at the package root, outside test/. The web test compiler cannot resolve it there, so flutter test --platform chrome failed to compile every naked_ui test file, and the existing skip: kIsWeb markers were unreachable. This moves it into test/ and fixes the two web-only failures that surfaced.

  • Move flutter_test_config.dart to packages/naked_ui/test/. The nested config in test/semantics/update_tree/ still applies to its directory.
  • Mark integration_tests_test.dart @TestOn('vm'): it launches flutter test in a child process through dart:io.
  • Split the radio "space and enter" keyboard test. On the web Flutter maps Enter to ButtonActivateIntent, which RawRadio does not handle, as with a native radio; the Enter test is skipped there and the Space test runs on both platforms.

Test-only change; no library code and no CHANGELOG entry. CI still runs the VM suite only.

Validation

  • flutter test in packages/naked_ui: 952 passed, 3 skipped (opt-in integration launchers).
  • flutter test --platform chrome in packages/naked_ui: 949 passed, 3 skipped (kIsWeb). Before this change the suite did not compile on Chrome (Undefined name 'testExecutable').
  • dart analyze (no new issues), root dart format check, melos run ci:checks: passed.

Related Issues

Follow-up from the review of #317.


Checklist

  • My PR includes unit or integration tests for all changed/updated/fixed behaviors.
  • I have updated or added relevant documentation (doc comments with ///).
  • I am prepared to follow up on review comments in a timely manner.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Move flutter_test_config.dart into test/ so `flutter test --platform chrome`
can compile the suite; at the package root the web compiler cannot resolve it.

Fix the two web-only failures:
- integration_tests_test.dart launches a child process through dart:io, so
  mark it @teston('vm').
- Split the radio space and enter test. On the web Enter maps to
  ButtonActivateIntent, which RawRadio does not handle, so the enter half is
  skipped there.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-27T00:23:07.820569Z 39e4730 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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