-
Notifications
You must be signed in to change notification settings - Fork 132
Fix for payment selection screen shown after successful payment #12415
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
Fix for payment selection screen shown after successful payment #12415
Conversation
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
It seems to be working correctly in my testing, although the original issue was filed before I added the new change due calculator: #11606 so the repro steps are a little different. |
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.
The code change looks fine to me. As the testing steps have changed a bit from the original issue, I'm not sure that I was able to reproduce it on trunk
though. Happy to re-test on trunk
with additional instructions.
👋 @backwardstruck, thanks for review! Sure, I'm sending a video with the reproduction steps shown below: Screen_recording_20240827_112911.mp4 |
Thanks for the video @samiuelson I was able to repro on trunk and not in this branch. I see that I had not popped the back stack when adding that cash payment screen (since it was just a dialog before). |
IMO, it was broken for a long time, even before the due change calculator was added. |
Closes: #10920
Description
There was a bug in navigation resulting in showing "Take payment" screen again after the payment was successfully collected (e.g. cash payment) after creating an order. The issue was present on large screens in tablet mode.
Steps to reproduce
Steps to reproduce the bug:
Testing information
The tests should verify that after collecting the payment the app redirects to the order list screen (in phone mode) and to the orders with order details (in tablet mode). Pressing "back" should redirect to the "My store" screen.
The tests that have been performed
I tested the above scenario on phone and tablet physical devices: Pixel 8 and Galaxy Tab, Android 14.
Images/gif
Screen_recording_20240826_162709.mp4
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: