e2e: added money request flow e2e test#52751
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@allgandalf 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] |
|
@hannojg your review would be highly appreciate! |
|
Does this need a C+ review @kirillzyusko ? |
I think no, a review from @hannojg should be enough 😊 |
CleanShot.2024-11-21.at.10.49.56.mp4Hm okay no sorry, seems to work, is that long waiting time on the submit money screen expected? |
No, I don't think so 🤔 We should clear a text and then press "2" button: .then(() => E2EClient.sendNativeCommand(NativeCommands.makeClearCommand()))
.then(() => {
tap('button_2');
})I think that adb clear command takes so long? The test actually works, right @hannojg? It just takes a lot of time when you clear the text? I tested on API 30 - which Android version do you test? What I tend to think is that I send KEY_CODE delete 250 times as a long press, on Android it should clear text quite effectively, and some devices seems to optimize it (i. e. if no text is left then they will do an early return). But it looks like in your case it's trying to send the command all 250 times 🙈 |
Exactly yes. Actually the text is cleared very quickly but then we seem to idle a long time on the screen.
Emulator Android version: 14 (API level 34)
Probably yes 🤔 any other idea how to implement the clear? Can we capture the text input's ref on react native's side and call |
This is what I wanted to try 🙂 |
Well, it didn't work out. It looks like on second and subsequent runs TextInput contains I think adding |
|
Okay, sounds good to me! |
bddc192 to
3b54445
Compare
|
@mountiny would it be possible to review/merge it? |
src/CONST.ts
Outdated
| OPEN_SUBMIT_EXPENSE: 'open_submit_expense', | ||
| OPEN_SUBMIT_EXPENSE_CONTACT: 'open_submit_expense_contact', | ||
| OPEN_SUBMIT_EXPENSE_APPROVE: 'open_submit_expense_approve', |
There was a problem hiding this comment.
@adhorodyski any feedback here on the event names?
Resolved |
dangrous
left a comment
There was a problem hiding this comment.
LGTM codewise! Will wait for the other reviews though
|
nooo more conflicts |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-04.at.1.57.35.PM.movAndroid: mWeb ChromeScreen.Recording.2025-04-04.at.1.56.08.PM.moviOS: NativeScreen.Recording.2025-04-04.at.1.58.48.PM.moviOS: mWeb SafariScreen.Recording.2025-04-04.at.2.00.00.PM.movMacOS: Chrome / SafariScreen.Recording.2025-04-04.at.1.54.17.PM.movMacOS: DesktopScreen.Recording.2025-04-04.at.1.59.36.PM.mov |
|
lol so many reviewers. Do we feel okay with just going ahead and merging this? What's quorum haha |
|
bump @mountiny |
mountiny
left a comment
There was a problem hiding this comment.
@hannojg @kirillzyusko @chrispader could you make this update please? (and in the other parts of the app)
085dca3 to
cd74c30
Compare
|
@mountiny @allgandalf @dangrous addressed latest comments and merged main! |
|
✋ 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/dangrous in version: 9.1.26-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.26-10 🚀
|

Explanation of Change
waitactions/functions.Fixed Issues
$ #30265
PROPOSAL: #30265 (comment)
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop