Skip to content

test(components): add unit tests for IconPicker #128 - #173

Merged
GiZano merged 1 commit into
ClimbStack:mainfrom
Gheb6:feat/issue-128-icon-picker-tests
Oct 14, 2026
Merged

GiZano merged 1 commit into
ClimbStack:mainfrom
Gheb6:feat/issue-128-icon-picker-tests

Conversation

@Gheb6

@Gheb6 Gheb6 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

This pull request description was written by an AI agent.

Summary

Adds comprehensive unit and component tests for IconPicker (src/components/IconPicker.tsx) achieving 100% line, branch, and statement coverage.

  • Verifies modal visibility (visible={true} and visible={false}), slide animation, and container styling.
  • Tests platform keyboard avoidance behaviors (behavior="height" on Android and behavior="padding" on iOS).
  • Tests search input filtering: exact matches, case-insensitive searches, substring queries, empty matches, and search clearing.
  • Tests placeholder fallback to "Search" when localized string is empty.
  • Tests FlatList column configuration and key extraction.
  • Tests user interactions: icon cell selection calling onSelect, cancel button calling onClose, and modal onRequestClose.
  • Tests light and dark theme styling across overlays, surfaces, text, search input, and icon cells.

Closes #128

AI Generation Disclosure

  • Tool / Agent: Antigravity with Gemini 3.8 Flash
  • Files generated:
    • src/components/__tests__/IconPicker.test.tsx (all lines)

…nerated)

Add comprehensive unit and component tests for IconPicker covering modal visibility, platform keyboard avoidance, search filtering, icon selection, cancel, onRequestClose, and theming.

Resolves ClimbStack#128
@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@GiZano
GiZano merged commit fd1bb12 into ClimbStack:main Oct 14, 2026
4 checks passed
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.

[FEAT] Add tests for src/components/IconPicker.tsx

2 participants