-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NoQA] Upgrade RNTL to the newest version #53067
[NoQA] Upgrade RNTL to the newest version #53067
Conversation
5f31fb1
to
bd32f42
Compare
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
4fe4459
to
af54b7d
Compare
@OlimpiaZurek enjoy your holidays, can someone please sync main in the pr? |
@OlimpiaZurek Could you please sync up with main before proceeding with this PR? thanks! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I did not want to merge this when we were not around to fix any issues that might arise from this. could you please sync with main and maek sure the test suite is passing after this update? Thank you!
af54b7d
to
c52234d
Compare
@mountiny I had to fix some tests after syncing with the main. All unit tests passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Merging as it was explained in the PR body that its expected that the reassure tests will fail |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.82-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.82-0 🚀
|
Explanation of Change
This PR updates the React Native Testing Library (RNTL) to version 12.8.1 and addresses test failures caused by the migration:
includeHiddenElements
option in test queries where necessary (this change is required due to changes in how RNTL handles hidden elements in queries)GenericPressable
by replacingtoBeDisabled
with checking if styles are correctly applied . InGenericPressabl
e, the disabled state is conditionally checked via event handlers (onPress, onLongPress, etc.) and styles instead of directly applying the disabled prop toPressable
. This implementation caused new test matchers liketoBeDisabled
to fail. I was about to change the impemenaiton by adding disabled prop explicit, but saw this comment .Fixed Issues
$ #54210
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop