-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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] fix(e2e): fix e2e search test by clicking search page #51157
Conversation
Implemented by building a global registry for on press props which can be imperatively called from the e2e test outside of the react lifecycle
@arosiclair Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
cc @mountiny Problem with testing this is that the change will be missing in the current release version. Locally everything works and i assume it will also in CI. but we only know once the new release version is created |
@hannojg do you suggest we wait for the new release to test this or we should go ahead and merge it? |
We should go ahead and merge and then wait for the next release |
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.
Ok lets see this one in actions
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ 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.52-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.52-5 🚀
|
Tests were passing, not an emergency |
Implemented by building a global registry for on press props which can be imperatively called from the e2e test outside of the react lifecycle
Details
The e2e pipeline is currently broken due to the "Open SearchRouter" test failing.
The fail happened when this PR got merged:
no mechanism was added that would open the search page.
This was solved by calling the
onPress
of the<SearchButton />
component in the e2e test.To call the
onPress
a registry for all generic pressables was added where the props get stored by anativeID
. This will only happen during the e2e tests as the wrapper is a.e2e.tsx
file.Working tests:
Screen.Recording.2024-10-21.at.09.49.20.mov
Fixed Issues
$
PROPOSAL:
Tests
n/a
Offline tests
QA Steps
n/a
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
n/a, see video in description
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop