-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
[Split Checkout] Recalculate tax on summary step #9631
[Split Checkout] Recalculate tax on summary step #9631
Conversation
And reduce code by referring to objects instead of just ids.
Somehow the helper methods were testing two different orders even though each spec is using only one order, the one which is currently being checked out by the user. So I brought the code closer into the example to easier see what is related and tested. I also changed the assertions for the pending spec but can't really verify them yet until I have completely working code.
It reduced the execution time by 5% on my machine (2-3 seconds).
e50b1ad
to
1d04510
Compare
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.
Nothing to add! 🙏
Hi @mkllnk, Before this PRMy understanding is that before this PR:
I was able to confirm this before staging this PR. Nunavut (no taxes), legacy checkout: Ontario (taxes), legacy checkout: Nunavut (no taxes), split checkout: Ontario (taxes), split checkout: After this PRSplit checkout: Taxes applied to products and shipping (shipping address inside tax zone and shipping method with tax) Legacy checkout: Taxes applied to products and shipping (shipping address inside tax zone and shipping method with tax) Split checkout: Taxes applied to products, but not to shipping (shipping address inside tax zone but shipping method without tax): Legacy checkout: Taxes applied to products, but not to shipping (shipping address inside tax zone but shipping method without tax): Split checkout: No taxes applied (shipping address outside tax zone): Legacy checkout: No taxes applied (shipping address outside tax zone): Results
It's looking good. Moving to Ready to Go! 🚀 |
Hold on! Moving back to Test Ready... |
What? Why?
What should we test?
Release notes
Changelog Category: User facing changes
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates