8000 test(sync): group-state card shows only the card meant for its state (#336 MINOR) by ahmet-cetinkaya · Pull Request #337 · ahmet-cetinkaya/whph · GitHub
[go: up one dir, main page]

Skip to content

test(sync): group-state card shows only the card meant for its state (#336 MINOR) - #337

Merged
ahmet-cetinkaya merged 1 commit into
feat/reliable-secure-lan-syncfrom
feat/sync-p3-19-third-party-reissue
Oct 29, 2026
Merged

ahmet-cetinkaya merged 1 commit into
feat/reliable-secure-lan-syncfrom
feat/sync-p3-19-third-party-reissue

Conversation

@ahmet-cetinkaya
Copy link
Copy Markdown
Owner

Efe's #336 MINOR: a test that the sync devices page shows NeedsRepairingCard only for needsRepairing (and RemovedFromGroupCard only for removedFromGroup).

  • Extracts the state-to-card mapping from SyncDevicesPage into SyncGroupStateCard (the page renders it; no behaviour change), so it is testable without the page's server and desktop dependencies.
  • sync_group_state_card_test.dart covers all four SyncGroupState values. Widening needsRepairing to ungrouped fails it (checked).
  • dart analyze clean; test/presentation/ui/features/sync 61 pass.

…ate (#336 review MINOR)

Extracts SyncGroupStateCard from the sync devices page so the mapping from SyncGroupState to card is testable; widening needsRepairing to ungrouped now fails a test.
@ahmet-cetinkaya
ahmet-cetinkaya merged commit f66fc1e into feat/reliable-secure-lan-sync Oct 29, 2026
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

0