Skip to content

fix(vendor): forward testID from VirtualList to its outer container - #120

Merged
RuudBurger merged 1 commit into
mainfrom
promote/virtual-list-testid
Aug 25, 2026
Merged

fix(vendor): forward testID from VirtualList to its outer container#120
RuudBurger merged 1 commit into
mainfrom
promote/virtual-list-testid

Conversation

@RuudBurger

Copy link
Copy Markdown
Member

Promotes a framework change developed against the client's vendor/react-lightning embed.

What changed

  • VirtualList forwards testID to its outer container. VirtualListProps was a closed interface with no testID, and the compiled output had no rest-spread either, so the prop was silently dropped and never reached an element. Any screen whose root is a VirtualList was therefore invisible to test tooling matching on it.
  • testID is now declared on LightningViewElementProps. The react-native compat layer already passed it through untyped and LightningViewElement already treats it as an inert prop, so this documents what was happening at runtime rather than changing behavior.

Why

A Maestro E2E flow asserting a screen id (screen-account-history) failed on Lightning while the screen rendered correctly, because that screen's root is a FlashList and the id died at the VirtualList boundary. This affects every FlashList-rooted screen, not just the one flow.

Validation

Verified in plexinc/react-native-client against the embedded copy: the flow that asserted the dropped id now passes, taking that suite from 7/10 to 8/10. check:types is clean on both touched packages and the vendored unit suite passes (72 files / 804 tests).

No render harness exists in these packages, so there's no unit test for the passthrough. The E2E assertion is the coverage.

Client-side integration stays in the client repo until a release is cut. A changeset is included so both packages get a patch bump.

@RuudBurger
RuudBurger requested a review from DouweBos August 25, 2026 11:01
@RuudBurger
RuudBurger merged commit 21d041e into main Aug 25, 2026
2 checks passed
@RuudBurger
RuudBurger deleted the promote/virtual-list-testid branch August 25, 2026 11:07
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.

2 participants