canonical / ubuntu.com

The official website for the Ubuntu operating system
https://ubuntu.com
Other
201 stars 199 forks source link

Add some tests for distributor store pages #14161

Closed minkyngkm closed 2 months ago

minkyngkm commented 2 months ago

Done

QA

Issue / Card

Fixes #https://warthogs.atlassian.net/browse/WD-13407

webteam-app commented 2 months ago

Demo

Jenkins

demos.haus

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.57%. Comparing base (ddbb920) to head (8496c20). Report is 188 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #14161 +/- ## ========================================== + Coverage 69.55% 69.57% +0.02% ========================================== Files 109 120 +11 Lines 3127 3412 +285 Branches 1090 1172 +82 ========================================== + Hits 2175 2374 +199 - Misses 926 1013 +87 + Partials 26 25 -1 ``` | [Files](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14161?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | Coverage Δ | | |---|---|---| | [...components/ChannelOffersList/ChannelOffersList.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14161?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fdistributor%2Fcomponents%2FChannelOffersList%2FChannelOffersList.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2UvZGlzdHJpYnV0b3IvY29tcG9uZW50cy9DaGFubmVsT2ZmZXJzTGlzdC9DaGFubmVsT2ZmZXJzTGlzdC50c3g=) | `86.11% <ø> (ø)` | | | [...utorShopForm/AddSubscriptions/AddSubscriptions.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14161?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fdistributor%2Fcomponents%2FDistributorShopForm%2FAddSubscriptions%2FAddSubscriptions.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2UvZGlzdHJpYnV0b3IvY29tcG9uZW50cy9EaXN0cmlidXRvclNob3BGb3JtL0FkZFN1YnNjcmlwdGlvbnMvQWRkU3Vic2NyaXB0aW9ucy50c3g=) | `100.00% <100.00%> (ø)` | | | [...riptions/SubscriptionCard.tsx/SubscriptionCard.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14161?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fdistributor%2Fcomponents%2FDistributorShopForm%2FAddSubscriptions%2FSubscriptionCard.tsx%2FSubscriptionCard.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2UvZGlzdHJpYnV0b3IvY29tcG9uZW50cy9EaXN0cmlidXRvclNob3BGb3JtL0FkZFN1YnNjcmlwdGlvbnMvU3Vic2NyaXB0aW9uQ2FyZC50c3gvU3Vic2NyaXB0aW9uQ2FyZC50c3g=) | `80.35% <100.00%> (ø)` | | | [.../advantage/offers/tests/factories/channelOffers.ts](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14161?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Foffers%2Ftests%2Ffactories%2FchannelOffers.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvb2ZmZXJzL3Rlc3RzL2ZhY3Rvcmllcy9jaGFubmVsT2ZmZXJzLnRz) | `100.00% <100.00%> (ø)` | | | [...c/advantage/subscribe/checkout/utils/test/Mocks.ts](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14161?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fsubscribe%2Fcheckout%2Futils%2Ftest%2FMocks.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvc3Vic2NyaWJlL2NoZWNrb3V0L3V0aWxzL3Rlc3QvTW9ja3MudHM=) | `100.00% <100.00%> (ø)` | | ... and [9 files with indirect coverage changes](https://app.codecov.io/gh/canonical/ubuntu.com/pull/14161/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical)