ubuntu.com
ubuntu.com copied to clipboard
WD-11633 distributor checkout page
This PR needs to be merged first https://github.com/canonical/ubuntu.com/pull/13917
Done
- Updated
/account/checkoutpage for the distributor store - Blocked by product listings (preview/purchase api is not working without product listing id)
QA
- Go to /pro/distributor
- Click Initiate order
- Complete all the steps /pro/distributor/shop (click "proceed to checkout" without updating anything in the /pro/distributor/shop to see VAT working)
- Proceed to checkout
- Click Checkout button in the /pro/distributor/order page
6.Check it goes
/account/checkoutpage and all the details in the page
Issue / Card
Fixes #https://warthogs.atlassian.net/browse/WD-11633
Codecov Report
Attention: Patch coverage is 15.25424% with 100 lines in your changes missing coverage. Please review.
Project coverage is 70.66%. Comparing base (
d6a26f9) to head (cb204af). Report is 57 commits behind head on distributor.
:exclamation: Current head cb204af differs from pull request most recent head f65ac71
Please upload reports for the commit f65ac71 to get more accurate results.
Additional details and impacted files
@@ Coverage Diff @@
## distributor #13889 +/- ##
===============================================
- Coverage 74.45% 70.66% -3.80%
===============================================
Files 107 109 +2
Lines 2862 3078 +216
Branches 962 1058 +96
===============================================
+ Hits 2131 2175 +44
- Misses 707 879 +172
Partials 24 24
| Files | Coverage Δ | |
|---|---|---|
| static/js/src/advantage/distributor/utils/utils.ts | 31.09% <ø> (ø) |
|
| .../offers/components/PaymentButton/PaymentButton.tsx | 100.00% <ø> (ø) |
|
| ...react/components/Subscriptions/Content/Content.tsx | 73.33% <ø> (ø) |
|
| ...ents/Subscriptions/RenewalButton/RenewalButton.tsx | 94.73% <ø> (ø) |
|
| ...blender/components/PaymentButton/PaymentButton.tsx | 100.00% <100.00%> (ø) |
|
| ...scribe/checkout/components/FreeTrial/FreeTrial.tsx | 84.61% <100.00%> (ø) |
|
| ...tage/subscribe/checkout/components/Taxes/Taxes.tsx | 73.00% <ø> (ø) |
|
| ...e/react/components/PaymentButton/PaymentButton.tsx | 53.33% <100.00%> (ø) |
|
| ...dvantage/subscribe/checkout/hooks/useCalculate.tsx | 33.33% <0.00%> (-8.34%) |
:arrow_down: |
| .../subscribe/checkout/components/Summary/Summary.tsx | 77.21% <76.47%> (+0.82%) |
:arrow_up: |
| ... and 2 more |