Skip to content

test(app): add minor view test gap coverage#88

Merged
pasrom merged 3 commits intomainfrom
test/minor-view-test-gaps
Apr 4, 2026
Merged

test(app): add minor view test gap coverage#88
pasrom merged 3 commits intomainfrom
test/minor-view-test-gaps

Conversation

@pasrom
Copy link
Copy Markdown
Owner

@pasrom pasrom commented Apr 4, 2026

Summary

  • PermissionRow: Icon priority tests — granted overrides warning/optional, warning overrides denied
  • MenuBarIcon: Frame wrapping tests — animationFrame modulo works for values > frameCount (including 999)
  • AppPickerView: Refresh button existence test

Notes

Some AppPickerView gaps (list content, icon fallback) can't be tested with ViewInspector because List content depends on @State populated in onAppear.

formattedElapsed and jobColor in MenuBarView are private — identical logic in the public formattedTime() is already tested. Not worth changing visibility.

Test plan

  • 50 targeted tests pass (0 failures)
  • Lint: 0 violations

@github-actions github-actions bot added the chore Maintenance or non-functional changes label Apr 4, 2026
pasrom added 3 commits April 4, 2026 23:38
Verify granted overrides warning/optional flags, and warning
takes priority over denied (xmark) in the icon selection logic.
Extract iconNames(for:) helper to reduce boilerplate.
Verify animationFrame wraps safely via modulo for values exceeding
frameCount, including large indices (999) for all animated badges.
Verify refresh button (arrow.clockwise icon) exists in the header.
@pasrom pasrom force-pushed the test/minor-view-test-gaps branch from 7879b59 to 4d83ebc Compare April 4, 2026 21:38
@pasrom pasrom merged commit beb5ba8 into main Apr 4, 2026
6 checks passed
@pasrom pasrom deleted the test/minor-view-test-gaps branch April 4, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance or non-functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant