Files
swiftcontrol/test/widgets
Jonas Bark 9bde802b9f test(click v2): fix the onboarding page and device-page collapse tests
Six Click V2 widget tests failed for three separate reasons. None of
them is an app bug.

- Choosing right-side-only remaps the keymap through
  core.actionHandler, and the page test never assigned it. The app
  assigns it in Settings.init() before any page can open, so the test
  now does the same: StubActions with no trainer app, as on a fresh
  install. The LateInitializationError it hit was caught and passed to
  recordError, and the 6 s diagnostics timeout that recordError starts
  outlived the test.
- The fade-in test still listed the "No D-pad" con. 1d1a0dbf removed
  that row from the right-side option on purpose, in all six locales.
  Page 0 now has three rows, and the test checks all three.
- flutter_local_notifications 22.3.0 (d42dd065) reads its static
  platform instance on every resolvePlatformSpecificImplementation
  call, and only real plugin registration sets it. 19.5.0 checked the
  target platform first, and flutter_test's default target (Android)
  never matched the macOS lookup ScanWidget's notification check makes,
  so the read never ran. The collapse test mocked only the method
  channel, so that check now threw. The test now installs the no-op
  platform fake the integration harness uses. With the fake in place
  nothing reaches the channel, so the channel mock is removed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 22:14:09 +02:00
..