Skip to content

Find the IconPicker's last page from its page count - #2653

Merged
kmcginnes merged 1 commit into
mainfrom
fix-tests-for-minor-and-patch-bumps-icon-picker-last-page-test
Nov 24, 2026
Merged

kmcginnes merged 1 commit into
mainfrom
fix-tests-for-minor-and-patch-bumps-icon-picker-last-page-test

Conversation

@kmcginnes

Copy link
Copy Markdown
Collaborator

Summary

lucide-react 1.77 adds icons, so an "arrow" search now fills three pages instead of two and the IconPicker last-page test fails on Bump the minor-and-patch group (#2649). The test now reads the page count from the pager and clicks Next until the last page, so it no longer depends on how many icons lucide ships.

User-facing: none

search "arrow"
read N from "Page 1 of N", expect N > 1
click Next N - 1 times
expect "Page N of N", Next disabled, Previous enabled

Evidence

Before: IconPicker > should disable Next on the last page fails with lucide-react 1.77.0: Unable to find an element with the text: /Page 2 of 2/ (156 matching icons, page size 64).

After: agent-tested: the test passes with lucide-react 1.66.0 (current main, 2 pages) and 1.77.0 (the #2649 lockfile, 3 pages).

Merge Danger

Door: two-way

Impact: none, test only


🤖 Written by an AI agent on my behalf.

Layer: 2-icon-picker-last-page-test

@kmcginnes kmcginnes left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@kmcginnes
kmcginnes merged commit 7eafb3b into main Nov 24, 2026
4 checks passed
@kmcginnes
kmcginnes deleted the fix-tests-for-minor-and-patch-bumps-icon-picker-last-page-test branch November 24, 2026 01:41
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