Skip to content

test: regression test for detached onPlaced crash (#639) - #652

Merged
mikepenz merged 1 commit into
developfrom
test/detached-placement-regression
Oct 13, 2026
Merged

mikepenz merged 1 commit into
developfrom
test/detached-placement-regression

Conversation

@mikepenz

Copy link
Copy Markdown
Owner

Adds a jvmTest Compose UI test that reproduces #639: a HorizontalPager of LazyColumns with markdown, swiped to recycle items.

  • Fails without the isAttached guards with IllegalStateException: LayoutCoordinate operations are only valid when isAttached is true.
  • Passes with them.
  • Adds jvmTest dependencies (compose runtime/ui/foundation/ui-test, desktop currentOs).

This branch is based on #641 (its fix commit is included), so it supersedes/extends that PR. Merge #641 first and this reduces to the test only.

Only this test was run; full jvmTest and apiCheck were not.

Adds a jvmTest Compose UI test that swipes a HorizontalPager of LazyColumns
containing markdown to recycle items, reproducing the IllegalStateException
from #639 when onPlaced reads parentLayoutCoordinates on detached coordinates.
Fails without the isAttached guards from #641, passes with them.

- adds jvmTest deps: compose runtime/ui/foundation/ui-test, desktop currentOs
Copilot AI balanced review requested due to automatic review settings October 13, 2026 16:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mikepenz mikepenz added the test label Oct 13, 2026
@mikepenz
mikepenz changed the base branch from main to develop October 13, 2026 16:35
@mikepenz
mikepenz enabled auto-merge October 13, 2026 16:36
@mikepenz
mikepenz merged commit 165a286 into develop Oct 13, 2026
5 checks passed
@mikepenz
mikepenz deleted the test/detached-placement-regression branch October 13, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants