Closed taylorvnoj closed 4 months ago
Latest commit: |
ea79a28
|
Status: | ✅ Deploy successful! |
Preview URL: | https://99ea1a70.atlantis.pages.dev |
Branch Preview URL: | https://job-97720-job-97888-add-test.atlantis.pages.dev |
Published Pre-release for ea79a2864bbe8912d3b9a44f90bfb86286bfe8a2 with versions:
- @jobber/components-native@0.67.7-JOB-97720.28+ea79a286
To install the new version(s) for Mobile run:
npm install @jobber/components-native@0.67.7-JOB-97720.28+ea79a286
Motivations
Allow a pass-through of a testID prop
Changes
Added
testID
prop oncomponents-native
Icon
testID
prop & the situation where someone has used name asdata-testid
instead.Why I did what I did
Keeping
testID || name
In
components-native
where we havesuffix
,prefix
or components likeButton
where we haveicon
as a prop:We're bringing in
IconNames
and teams are using that to test that anIcon
is being used in these components as prefixes, etc. So, only havingtestID
here is not only more of a breaking change than I originally thought. I don't think we should expect consumers ofButton
to put atestID
on a nestedIcon
that's being rendered as a prop.Testing
Nothing fails in external mobile repo: https://github.com/GetJobber/jobber-mobile/pull/9365
In Atlantis we use Github's built in pull request reviews.