Reset category and tag on navigating to confirmation page#33222
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2023-12-18_14.50.29.mp4Android: mWeb Chromeandroid-chrome-2023-12-18_14.46.15.mp4iOS: Nativeios-native-2023-12-18_14.54.23.mp4iOS: mWeb Safariios-safari-2023-12-18_14.51.54.mp4MacOS: Chrome / Safaridesktop-chrome-2023-12-18_14.38.03.mp4MacOS: Desktopdesktop-app-2023-12-18_14.40.26.mp4 |
|
@blimpich Is the change related to this pr suitable for unit test? It's not like this pr introduces the tag and category reset functions. Can U please give me a bit of elaboration? |
|
@blimpich Ok now, working on creating the test. 👍 |
|
@FitseTLT Unit tests aren't just for new functionality, they are also for catching bugs 🐛. In a perfect world this bug should have never happened because a unit test should have caught it. If adding a test to this only takes you 2-3 hours I think it would be well-worth adding it. If it's going to take longer than that then I think we can go ahead and merge this without adding a new unit test. Thank you for looking into it! 🙂 |
|
@blimpich I couldn't get a perfect example unit test similar to what I am supposed to create for this pr. What I tried is set tag and category in onyx to a draft transaction and then render the |
There was a problem hiding this comment.
Sounds good @FitseTLT, thank you for trying. Yes historically we rely on E2E tests for testing these kinds of changes. Unit tests, though, are much cheaper and quicker than E2E testing, so I'm hoping that in the future we we'll start writing more unit tests.
I asked you largely because I wanted someone to investigate whether it would be easy to add a unit test for this component, which it looks like it isn't. Thank you for investigating that. I appreciate your work. Approved!
|
✋ 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/blimpich in version: 1.4.15-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.15-5 🚀
|
Details
Fixed Issues
$ #33067
PROPOSAL: #33067 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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.native.mp4
Android: mWeb Chrome
android.web.mp4
iOS: Native
ios.native.mp4
iOS: mWeb Safari
ios.web.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4