-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 bug related to free shipping not being applied correctly #3671
Fix bug related to free shipping not being applied correctly #3671
Conversation
Contexts usually refer to when something changes in the test environment that effects the outcome of the test. I don't think we should have been using context here and describe is a more common pattern imo.
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.
Thanks @jacquesporveau 🎉
I left 2 small comments on the spec context descriptions, but in general this looks good to me 👍
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.
One suggestion, but I think this looks good.
In cases that an order contained *some* shipments with free shipping applied already then when this method would run again it was possible to get an early return and not correctly apply free shipping.
08c47bf
to
caf8957
Compare
Thanks gang. I've addressed the feedback. |
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.
Great, nice fix!
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.
Thank you, works for me.
Description
Fixes #3664
I would leave a more detailed PR description but the author of #3664 did a really good job in describing the problem at hand and this PR is just a solution for that.
I kind of took a bit of liberty in improving the spec quality. Let me know if you don't like that style or something like that and I can rework it if need be.
Checklist: