X Tutup
Skip to content

feat: add testID props to SpeedDial.Action and ListItem.Swipeable#4013

Open
therbta wants to merge 1 commit intoreact-native-elements:nextfrom
therbta:fix/testid-props-3786
Open

feat: add testID props to SpeedDial.Action and ListItem.Swipeable#4013
therbta wants to merge 1 commit intoreact-native-elements:nextfrom
therbta:fix/testid-props-3786

Conversation

@therbta
Copy link

@therbta therbta commented Jan 5, 2026

Motivation

Adds testID support to SpeedDial.Action and ListItem.Swipeable so E2E/UI tests can target these components reliably.

Closes #3786

Type of change

  • Feature (non-breaking)

How Has This Been Tested?

  • Verified in the example app / local project by rendering:
    • SpeedDial.Action with a testID
    • ListItem.Swipeable with a testID
  • Confirmed the following IDs are present:
    • testID on the main wrapper
    • ${testID}-actions on the swipe actions container

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have added tests (N/A for this small prop passthrough, unless requested)
  • New and existing unit tests pass locally with my changes

Additional context

Related reference PR: #3787

return (
<View style={styles.container}>
<View style={styles.container} testID={testID}>
<View style={styles.actions}>
Copy link
Contributor

Choose a reason for hiding this comment

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

You can also add the testID to the other sub-components, just like below
testID={testID ? ${testID}-actions : undefined}

@theianmay theianmay self-assigned this Jan 5, 2026
@theianmay
Copy link
Member

Hello, thank you for opening this PR. Can you please follow our template for submitting PRs instead of just listing the changes in the area above? This helps the team during review. I have not had the chance to detail review yet but linking a related past PR for reference: #3787 (looks like the test ID was actually set for the component in this one, it is not in this PR)

@theianmay theianmay self-requested a review January 6, 2026 05:44
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.

Components missing testID prop

3 participants

X Tutup