[NoQA] fix(e2e): fix e2e search test by clicking search page#51157
[NoQA] fix(e2e): fix e2e search test by clicking search page#51157mountiny merged 1 commit intoExpensify:mainfrom
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 |
mountiny
left a comment
There was a problem hiding this comment.
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
onPressof the<SearchButton />component in the e2e test.To call the
onPressa 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.tsxfile.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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
n/a, see video in description
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop