-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Add test coverage to BulkLineItemsController actions #7576
Add test coverage to BulkLineItemsController actions #7576
Conversation
This spec includes taxes on line items, fees on the order and on line items, taxes on fees (inherited and non-inherited), shipping and payment fees and taxes on shipping. It checks all of these things are correctly updated after the order is changed via BOM.
expect(order.total).to eq 61.0 | ||
expect(order.item_total).to eq 40.0 | ||
expect(order.adjustment_total).to eq 21.0 | ||
expect(order.included_tax_total).to eq 2.65 # Pending: this should be 3.10! |
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.
This is fixed in #7429
Codecov Report
@@ Coverage Diff @@
## master #7576 +/- ##
==========================================
+ Coverage 93.18% 93.20% +0.01%
==========================================
Files 635 635
Lines 18130 18136 +6
==========================================
+ Hits 16895 16904 +9
+ Misses 1235 1232 -3
Continue to review full report at Codecov.
|
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.
💪 🚀
I feel like this one could probably just get merged with one review... |
What? Why?
Adds more detailed test coverage to
BulkLineItemsController
actions, which are used to change line items in orders via the Bulk Order Management page.This spec includes taxes on line items, enterprise fees on both the order and on line items, taxes on those fees (both inherited and non-inherited), shipping and payment fees and taxes on shipping. It checks all of these things are correctly updated after the order is changed via BOM.
What should we test?
Green build, it's just specs.
Release notes
Increased test coverage on BulkLineItemsController
Changelog Category: Technical changes