@magento/venia-ui 9.2.0-alpha.3 → 9.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/i18n/en_US.json +17 -3
- package/lib/RootComponents/CMS/__tests__/__snapshots__/cms.spec.js.snap +19 -0
- package/lib/RootComponents/CMS/__tests__/cms.spec.js +4 -9
- package/lib/RootComponents/CMS/cms.js +5 -4
- package/lib/RootComponents/CMS/cms.shimmer.js +18 -0
- package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.shimmer.spec.js.snap +12 -0
- package/lib/RootComponents/Category/categoryContent.js +4 -1
- package/lib/components/AccountChip/accountChip.js +3 -1
- package/lib/components/AccountInformationPage/accountInformationPage.js +3 -1
- package/lib/components/AccountInformationPage/editModal.js +9 -2
- package/lib/components/AccountMenu/accountMenuItems.js +8 -3
- package/lib/components/CartPage/GiftCards/giftCards.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/CouponCode/couponCode.js +5 -1
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/__tests__/__snapshots__/giftOptions.spec.js.snap +1018 -78
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/__tests__/giftOptions.spec.js +221 -35
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.js +287 -40
- package/lib/components/CartPage/PriceAdjustments/GiftOptions/giftOptions.module.css +56 -1
- package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftCardSection.ee.spec.js.snap +12 -0
- package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftOptionsSection.ce.spec.js.snap +3 -0
- package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/giftOptionsSection.ee.spec.js.snap +16 -0
- package/lib/components/CartPage/PriceAdjustments/__tests__/__snapshots__/priceAdjustments.spec.js.snap +1 -32
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftCardSection.ce.spec.js +17 -0
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftCardSection.ee.spec.js +36 -0
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftOptionsSection.ce.spec.js +17 -0
- package/lib/components/CartPage/PriceAdjustments/__tests__/giftOptionsSection.ee.spec.js +54 -0
- package/lib/components/CartPage/PriceAdjustments/__tests__/priceAdjustments.spec.js +1 -1
- package/lib/components/CartPage/PriceAdjustments/{giftCardSection.js → giftCardSection.ce.js} +0 -0
- package/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ce.js +7 -0
- package/lib/components/CartPage/PriceAdjustments/giftOptionsSection.ee.js +38 -0
- package/lib/components/CartPage/PriceAdjustments/priceAdjustments.js +2 -14
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/discountSummary.spec.js.snap +496 -42
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftCardSummary.ce.spec.js.snap +3 -0
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/{giftCardSummary.spec.js.snap → giftCardSummary.ee.spec.js.snap} +4 -4
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftOptionsSummary.ce.spec.js.snap +3 -0
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/giftOptionsSummary.ee.spec.js.snap +63 -0
- package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/priceSummary.spec.js.snap +201 -141
- package/lib/components/CartPage/PriceSummary/__tests__/discountSummary.spec.js +41 -1
- package/lib/components/CartPage/PriceSummary/__tests__/giftCardSummary.ce.spec.js +17 -0
- package/lib/components/CartPage/PriceSummary/__tests__/giftCardSummary.ee.spec.js +84 -0
- package/lib/components/CartPage/PriceSummary/__tests__/giftOptionsSummary.ce.spec.js +17 -0
- package/lib/components/CartPage/PriceSummary/__tests__/giftOptionsSummary.ee.spec.js +69 -0
- package/lib/components/CartPage/PriceSummary/__tests__/priceSummary.spec.js +2 -0
- package/lib/components/CartPage/PriceSummary/discountSummary.js +99 -49
- package/lib/components/CartPage/PriceSummary/discountSummary.module.css +40 -0
- package/lib/components/CartPage/PriceSummary/giftOptionsSummary.ce.js +5 -0
- package/lib/components/CartPage/PriceSummary/giftOptionsSummary.ee.js +40 -0
- package/lib/components/CartPage/PriceSummary/priceSummary.js +95 -53
- package/lib/components/CartPage/PriceSummary/priceSummary.module.css +2 -0
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productDetail.spec.js.snap +57 -0
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +22 -0
- package/lib/components/CartPage/ProductListing/EditModal/__tests__/productDetail.spec.js +42 -3
- package/lib/components/CartPage/ProductListing/EditModal/productDetail.js +13 -10
- package/lib/components/CartPage/ProductListing/EditModal/productForm.js +7 -2
- package/lib/components/CartPage/ProductListing/product.js +1 -0
- package/lib/components/CartPage/ProductListing/productListing.js +1 -1
- package/lib/components/CartPage/cartPage.js +1 -1
- package/lib/components/Checkbox/checkbox.js +6 -1
- package/lib/components/Checkbox/checkbox.module.css +1 -0
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/item.spec.js.snap +2 -2
- package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +33 -0
- package/lib/components/CheckoutPage/ItemsReview/__tests__/item.spec.js +2 -2
- package/lib/components/CheckoutPage/ItemsReview/itemsReview.js +4 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/createAccount.spec.js +4 -0
- package/lib/components/CheckoutPage/OrderConfirmationPage/createAccount.js +9 -1
- package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +12 -3
- package/lib/components/CheckoutPage/PaymentInformation/__tests__/__snapshots__/creditCard.spec.js.snap +1 -0
- package/lib/components/CheckoutPage/PaymentInformation/__tests__/creditCard.spec.js +2 -1
- package/lib/components/CheckoutPage/PaymentInformation/brainTreeDropIn.js +2 -18
- package/lib/components/CheckoutPage/PaymentInformation/creditCard.js +13 -3
- package/lib/components/CheckoutPage/PriceAdjustments/__tests__/__snapshots__/priceAdjustments.spec.js.snap +1 -6
- package/lib/components/CheckoutPage/PriceAdjustments/__tests__/priceAdjustments.spec.js +2 -2
- package/lib/components/CheckoutPage/PriceAdjustments/priceAdjustments.js +8 -12
- package/lib/components/CheckoutPage/ShippingInformation/AddressForm/customerForm.js +1 -1
- package/lib/components/CheckoutPage/ShippingInformation/shippingInformation.js +4 -1
- package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +5 -2
- package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +3 -3
- package/lib/components/CheckoutPage/__tests__/checkoutPage.spec.js +5 -0
- package/lib/components/CheckoutPage/checkoutPage.js +25 -4
- package/lib/components/CheckoutPage/checkoutPage.module.css +8 -1
- package/lib/components/CmsDynamicBlock/__tests__/__snapshots__/cmsDynamicBlock.ce.spec.js.snap +3 -0
- package/lib/components/CmsDynamicBlock/__tests__/__snapshots__/cmsDynamicBlock.ee.spec.js.snap +61 -0
- package/lib/components/CmsDynamicBlock/__tests__/__snapshots__/dynamicBlock.spec.js.snap +7 -0
- package/lib/components/CmsDynamicBlock/__tests__/cmsDynamicBlock.ce.spec.js +17 -0
- package/lib/components/CmsDynamicBlock/__tests__/cmsDynamicBlock.ee.spec.js +211 -0
- package/lib/components/CmsDynamicBlock/__tests__/constants.spec.js +37 -0
- package/lib/components/CmsDynamicBlock/__tests__/dynamicBlock.spec.js +33 -0
- package/lib/components/CmsDynamicBlock/cmsDynamicBlock.ce.js +5 -0
- package/lib/components/CmsDynamicBlock/cmsDynamicBlock.ee.js +73 -0
- package/lib/components/CmsDynamicBlock/constants.js +6 -0
- package/lib/components/CmsDynamicBlock/dynamicBlock.js +32 -0
- package/lib/components/CmsDynamicBlock/index.js +2 -0
- package/lib/components/CreateAccount/__tests__/createAccount.spec.js +6 -1
- package/lib/components/CreateAccount/createAccount.js +7 -2
- package/lib/components/Field/field.module.css +6 -0
- package/lib/components/FilterSidebar/filterSidebar.js +4 -1
- package/lib/components/Footer/__tests__/__snapshots__/footer.spec.js.snap +8 -2
- package/lib/components/Footer/footer.js +16 -9
- package/lib/components/Footer/footer.module.css +7 -2
- package/lib/components/ForgotPassword/ForgotPasswordForm/__tests__/__snapshots__/forgotPasswordForm.spec.js.snap +109 -1
- package/lib/components/ForgotPassword/ForgotPasswordForm/__tests__/forgotPasswordForm.spec.js +22 -3
- package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.js +13 -3
- package/lib/components/ForgotPassword/ForgotPasswordForm/forgotPasswordForm.module.css +1 -1
- package/lib/components/ForgotPassword/__tests__/__snapshots__/forgotPassword.spec.js.snap +5 -6
- package/lib/components/ForgotPassword/__tests__/forgotPassword.spec.js +41 -28
- package/lib/components/ForgotPassword/forgotPassword.js +10 -3
- package/lib/components/ForgotPassword/forgotPassword.module.css +2 -2
- package/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +22 -0
- package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +17 -0
- package/lib/components/Gallery/addToCartButton.js +2 -0
- package/lib/components/Gallery/gallery.js +6 -1
- package/lib/components/Gallery/item.js +7 -2
- package/lib/components/GoogleReCaptcha/googleReCaptcha.js +49 -0
- package/lib/components/GoogleReCaptcha/googleReCaptcha.module.css +3 -0
- package/lib/components/GoogleReCaptcha/index.js +1 -0
- package/lib/components/Header/currencySwitcher.js +2 -1
- package/lib/components/Header/header.js +1 -1
- package/lib/components/Header/header.module.css +2 -2
- package/lib/components/Header/searchTrigger.js +3 -1
- package/lib/components/Header/storeSwitcher.js +18 -4
- package/lib/components/Header/switcherItem.js +4 -1
- package/lib/components/HomePage/homePage.module.css +12 -0
- package/lib/components/Image/resourceImage.js +8 -1
- package/lib/components/Image/simpleImage.js +8 -1
- package/lib/components/Link/link.js +15 -13
- package/lib/components/LoadingIndicator/spinner.js +5 -7
- package/lib/components/LoadingIndicator/spinner.module.css +4 -17
- package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +44 -0
- package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/productList.spec.js.snap +1 -1
- package/lib/components/MiniCart/ProductList/__tests__/item.spec.js +2 -2
- package/lib/components/MiniCart/ProductList/__tests__/productList.spec.js +1 -1
- package/lib/components/MiniCart/ProductList/item.js +3 -2
- package/lib/components/MiniCart/ProductList/productList.js +1 -1
- package/lib/components/MiniCart/miniCart.js +6 -3
- package/lib/components/MyAccount/ResetPassword/__tests__/__snapshots__/resetPassword.spec.js.snap +274 -254
- package/lib/components/MyAccount/ResetPassword/__tests__/resetPassword.spec.js +10 -5
- package/lib/components/MyAccount/ResetPassword/resetPassword.js +55 -55
- package/lib/components/MyAccount/ResetPassword/resetPassword.module.css +27 -79
- package/lib/components/Newsletter/newsletter.js +6 -2
- package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +11 -0
- package/lib/components/ProductFullDetail/CustomAttributes/__tests__/__snapshots__/customAttributes.spec.js.snap +9 -3
- package/lib/components/ProductFullDetail/CustomAttributes/__tests__/customAttributes.spec.js +5 -6
- package/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +6 -4
- package/lib/components/ProductFullDetail/productFullDetail.js +12 -3
- package/lib/components/ProductImageCarousel/__tests__/__snapshots__/carousel.spec.js.snap +61 -0
- package/lib/components/ProductImageCarousel/__tests__/__snapshots__/thumbnail.spec.js.snap +26 -0
- package/lib/components/ProductOptions/__tests__/options.spec.js +1 -1
- package/lib/components/ProductOptions/__tests__/swatch.spec.js +1 -1
- package/lib/components/ProductOptions/__tests__/swatchList.spec.js +1 -1
- package/lib/components/ProductOptions/__tests__/tile.spec.js +1 -1
- package/lib/components/ProductOptions/__tests__/tileList.spec.js +1 -1
- package/lib/components/ProductOptions/option.js +4 -1
- package/lib/components/ProductSort/productSort.js +22 -14
- package/lib/components/Rating/rating.js +1 -1
- package/lib/components/SearchBar/__tests__/__snapshots__/suggestedProduct.spec.js.snap +11 -0
- package/lib/components/SearchBar/autocomplete.js +5 -2
- package/lib/components/SearchBar/suggestedProduct.js +1 -1
- package/lib/components/SearchBar/suggestions.js +1 -1
- package/lib/components/SignIn/__tests__/signIn.spec.js +11 -20
- package/lib/components/SignIn/signIn.js +6 -16
- package/lib/components/TextInput/textInput.module.css +0 -4
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/__tests__/__snapshots__/wishlistLineItem.spec.js.snap +5 -1
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.js +7 -1
- package/lib/components/Wishlist/WishlistDialog/WishlistLineItem/wishlistLineItem.module.css +7 -0
- package/lib/components/Wishlist/WishlistDialog/__tests__/__snapshots__/wishlistDialog.spec.js.snap +6 -1
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlist.spec.js.snap +4 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistItem.spec.js.snap +22 -0
- package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistPage.spec.js.snap +9 -3
- package/lib/components/WishlistPage/createWishlist.ee.js +3 -1
- package/lib/components/WishlistPage/wishlist.js +1 -1
- package/lib/components/WishlistPage/wishlist.module.css +3 -0
- package/lib/components/WishlistPage/wishlistPage.js +1 -1
- package/package.json +5 -4
- package/lib/components/CartPage/PriceSummary/__tests__/giftCardSummary.spec.js +0 -84
package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/discountSummary.spec.js.snap
CHANGED
|
@@ -1,62 +1,516 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`renders
|
|
3
|
+
exports[`renders "Discount applied" label if label data is empty 1`] = `
|
|
4
4
|
Array [
|
|
5
|
-
<
|
|
6
|
-
className="
|
|
7
|
-
>
|
|
8
|
-
<mock-FormattedMessage
|
|
9
|
-
defaultMessage="Discounts applied"
|
|
10
|
-
id="discountSummary.lineItemLabel"
|
|
11
|
-
/>
|
|
12
|
-
</span>,
|
|
13
|
-
<span
|
|
14
|
-
className="price"
|
|
5
|
+
<li
|
|
6
|
+
className="discountLineItems"
|
|
15
7
|
>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
<span
|
|
9
|
+
className="discountLineItemLabel"
|
|
10
|
+
>
|
|
11
|
+
<mock-FormattedMessage
|
|
12
|
+
defaultMessage="Applied discounts"
|
|
13
|
+
id="discountSummary.lineItemLabel"
|
|
14
|
+
/>
|
|
15
|
+
<button
|
|
16
|
+
aria-expanded={false}
|
|
17
|
+
aria-label="Show individual discounts."
|
|
18
|
+
className="discountsButton"
|
|
19
|
+
onClick={[Function]}
|
|
20
|
+
type="button"
|
|
21
|
+
>
|
|
22
|
+
<span
|
|
23
|
+
className="root"
|
|
24
|
+
>
|
|
25
|
+
<svg
|
|
26
|
+
className="icon"
|
|
27
|
+
fill="none"
|
|
28
|
+
height={24}
|
|
29
|
+
stroke="currentColor"
|
|
30
|
+
strokeLinecap="round"
|
|
31
|
+
strokeLinejoin="round"
|
|
32
|
+
strokeWidth="2"
|
|
33
|
+
viewBox="0 0 24 24"
|
|
34
|
+
width={24}
|
|
35
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
36
|
+
>
|
|
37
|
+
<polyline
|
|
38
|
+
points="6 9 12 15 18 9"
|
|
39
|
+
/>
|
|
40
|
+
</svg>
|
|
41
|
+
</span>
|
|
42
|
+
</button>
|
|
19
43
|
</span>
|
|
20
|
-
<span
|
|
21
|
-
|
|
44
|
+
<span
|
|
45
|
+
className="price"
|
|
46
|
+
>
|
|
47
|
+
-
|
|
48
|
+
<span>
|
|
49
|
+
$
|
|
50
|
+
</span>
|
|
51
|
+
<span>
|
|
52
|
+
1
|
|
53
|
+
</span>
|
|
54
|
+
<span>
|
|
55
|
+
.
|
|
56
|
+
</span>
|
|
57
|
+
<span>
|
|
58
|
+
00
|
|
59
|
+
</span>
|
|
22
60
|
</span>
|
|
23
|
-
|
|
24
|
-
|
|
61
|
+
</li>,
|
|
62
|
+
<div
|
|
63
|
+
aria-hidden={true}
|
|
64
|
+
className="rah-static rah-static--height-zero"
|
|
65
|
+
style={
|
|
66
|
+
Object {
|
|
67
|
+
"height": 0,
|
|
68
|
+
"overflow": "hidden",
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
style={Object {}}
|
|
74
|
+
>
|
|
75
|
+
<ul
|
|
76
|
+
className="individualDiscountsList"
|
|
77
|
+
>
|
|
78
|
+
<hr
|
|
79
|
+
className="individualDiscountSeparator"
|
|
80
|
+
/>
|
|
81
|
+
<li
|
|
82
|
+
className="individualDiscountsListLineItem"
|
|
83
|
+
>
|
|
84
|
+
<span
|
|
85
|
+
className="lineItemLabel"
|
|
86
|
+
>
|
|
87
|
+
<span />
|
|
88
|
+
</span>
|
|
89
|
+
<span
|
|
90
|
+
className="price"
|
|
91
|
+
>
|
|
92
|
+
-
|
|
93
|
+
<span>
|
|
94
|
+
$
|
|
95
|
+
</span>
|
|
96
|
+
<span>
|
|
97
|
+
1
|
|
98
|
+
</span>
|
|
99
|
+
<span>
|
|
100
|
+
.
|
|
101
|
+
</span>
|
|
102
|
+
<span>
|
|
103
|
+
00
|
|
104
|
+
</span>
|
|
105
|
+
</span>
|
|
106
|
+
</li>
|
|
107
|
+
<hr
|
|
108
|
+
className="individualDiscountSeparator"
|
|
109
|
+
/>
|
|
110
|
+
</ul>
|
|
111
|
+
</div>
|
|
112
|
+
</div>,
|
|
113
|
+
]
|
|
114
|
+
`;
|
|
115
|
+
|
|
116
|
+
exports[`renders accumulated discount value 1`] = `
|
|
117
|
+
Array [
|
|
118
|
+
<li
|
|
119
|
+
className="discountLineItems"
|
|
120
|
+
>
|
|
121
|
+
<span
|
|
122
|
+
className="discountLineItemLabel"
|
|
123
|
+
>
|
|
124
|
+
<mock-FormattedMessage
|
|
125
|
+
defaultMessage="Applied discounts"
|
|
126
|
+
id="discountSummary.lineItemLabel"
|
|
127
|
+
/>
|
|
128
|
+
<button
|
|
129
|
+
aria-expanded={false}
|
|
130
|
+
aria-label="Show individual discounts."
|
|
131
|
+
className="discountsButton"
|
|
132
|
+
onClick={[Function]}
|
|
133
|
+
type="button"
|
|
134
|
+
>
|
|
135
|
+
<span
|
|
136
|
+
className="root"
|
|
137
|
+
>
|
|
138
|
+
<svg
|
|
139
|
+
className="icon"
|
|
140
|
+
fill="none"
|
|
141
|
+
height={24}
|
|
142
|
+
stroke="currentColor"
|
|
143
|
+
strokeLinecap="round"
|
|
144
|
+
strokeLinejoin="round"
|
|
145
|
+
strokeWidth="2"
|
|
146
|
+
viewBox="0 0 24 24"
|
|
147
|
+
width={24}
|
|
148
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
149
|
+
>
|
|
150
|
+
<polyline
|
|
151
|
+
points="6 9 12 15 18 9"
|
|
152
|
+
/>
|
|
153
|
+
</svg>
|
|
154
|
+
</span>
|
|
155
|
+
</button>
|
|
25
156
|
</span>
|
|
26
|
-
<span
|
|
27
|
-
|
|
157
|
+
<span
|
|
158
|
+
className="price"
|
|
159
|
+
>
|
|
160
|
+
-
|
|
161
|
+
<span>
|
|
162
|
+
$
|
|
163
|
+
</span>
|
|
164
|
+
<span>
|
|
165
|
+
2
|
|
166
|
+
</span>
|
|
167
|
+
<span>
|
|
168
|
+
.
|
|
169
|
+
</span>
|
|
170
|
+
<span>
|
|
171
|
+
00
|
|
172
|
+
</span>
|
|
28
173
|
</span>
|
|
29
|
-
</
|
|
174
|
+
</li>,
|
|
175
|
+
<div
|
|
176
|
+
aria-hidden={true}
|
|
177
|
+
className="rah-static rah-static--height-zero"
|
|
178
|
+
style={
|
|
179
|
+
Object {
|
|
180
|
+
"height": 0,
|
|
181
|
+
"overflow": "hidden",
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
>
|
|
185
|
+
<div
|
|
186
|
+
style={Object {}}
|
|
187
|
+
>
|
|
188
|
+
<ul
|
|
189
|
+
className="individualDiscountsList"
|
|
190
|
+
>
|
|
191
|
+
<hr
|
|
192
|
+
className="individualDiscountSeparator"
|
|
193
|
+
/>
|
|
194
|
+
<li
|
|
195
|
+
className="individualDiscountsListLineItem"
|
|
196
|
+
>
|
|
197
|
+
<span
|
|
198
|
+
className="lineItemLabel"
|
|
199
|
+
>
|
|
200
|
+
<span>
|
|
201
|
+
Discount 1
|
|
202
|
+
</span>
|
|
203
|
+
</span>
|
|
204
|
+
<span
|
|
205
|
+
className="price"
|
|
206
|
+
>
|
|
207
|
+
-
|
|
208
|
+
<span>
|
|
209
|
+
$
|
|
210
|
+
</span>
|
|
211
|
+
<span>
|
|
212
|
+
0
|
|
213
|
+
</span>
|
|
214
|
+
<span>
|
|
215
|
+
.
|
|
216
|
+
</span>
|
|
217
|
+
<span>
|
|
218
|
+
00
|
|
219
|
+
</span>
|
|
220
|
+
</span>
|
|
221
|
+
</li>
|
|
222
|
+
<li
|
|
223
|
+
className="individualDiscountsListLineItem"
|
|
224
|
+
>
|
|
225
|
+
<span
|
|
226
|
+
className="lineItemLabel"
|
|
227
|
+
>
|
|
228
|
+
<span>
|
|
229
|
+
Discount 2
|
|
230
|
+
</span>
|
|
231
|
+
</span>
|
|
232
|
+
<span
|
|
233
|
+
className="price"
|
|
234
|
+
>
|
|
235
|
+
-
|
|
236
|
+
<span>
|
|
237
|
+
$
|
|
238
|
+
</span>
|
|
239
|
+
<span>
|
|
240
|
+
1
|
|
241
|
+
</span>
|
|
242
|
+
<span>
|
|
243
|
+
.
|
|
244
|
+
</span>
|
|
245
|
+
<span>
|
|
246
|
+
00
|
|
247
|
+
</span>
|
|
248
|
+
</span>
|
|
249
|
+
</li>
|
|
250
|
+
<li
|
|
251
|
+
className="individualDiscountsListLineItem"
|
|
252
|
+
>
|
|
253
|
+
<span
|
|
254
|
+
className="lineItemLabel"
|
|
255
|
+
>
|
|
256
|
+
<span>
|
|
257
|
+
Discount 3
|
|
258
|
+
</span>
|
|
259
|
+
</span>
|
|
260
|
+
<span
|
|
261
|
+
className="price"
|
|
262
|
+
>
|
|
263
|
+
-
|
|
264
|
+
<span>
|
|
265
|
+
$
|
|
266
|
+
</span>
|
|
267
|
+
<span>
|
|
268
|
+
1
|
|
269
|
+
</span>
|
|
270
|
+
<span>
|
|
271
|
+
.
|
|
272
|
+
</span>
|
|
273
|
+
<span>
|
|
274
|
+
00
|
|
275
|
+
</span>
|
|
276
|
+
</span>
|
|
277
|
+
</li>
|
|
278
|
+
<hr
|
|
279
|
+
className="individualDiscountSeparator"
|
|
280
|
+
/>
|
|
281
|
+
</ul>
|
|
282
|
+
</div>
|
|
283
|
+
</div>,
|
|
30
284
|
]
|
|
31
285
|
`;
|
|
32
286
|
|
|
33
|
-
exports[`renders discount
|
|
287
|
+
exports[`renders discount label value from data 1`] = `
|
|
34
288
|
Array [
|
|
35
|
-
<
|
|
36
|
-
className="
|
|
37
|
-
>
|
|
38
|
-
<mock-FormattedMessage
|
|
39
|
-
defaultMessage="Discounts applied"
|
|
40
|
-
id="discountSummary.lineItemLabel"
|
|
41
|
-
/>
|
|
42
|
-
</span>,
|
|
43
|
-
<span
|
|
44
|
-
className="price"
|
|
289
|
+
<li
|
|
290
|
+
className="discountLineItems"
|
|
45
291
|
>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
292
|
+
<span
|
|
293
|
+
className="discountLineItemLabel"
|
|
294
|
+
>
|
|
295
|
+
<mock-FormattedMessage
|
|
296
|
+
defaultMessage="Applied discounts"
|
|
297
|
+
id="discountSummary.lineItemLabel"
|
|
298
|
+
/>
|
|
299
|
+
<button
|
|
300
|
+
aria-expanded={false}
|
|
301
|
+
aria-label="Show individual discounts."
|
|
302
|
+
className="discountsButton"
|
|
303
|
+
onClick={[Function]}
|
|
304
|
+
type="button"
|
|
305
|
+
>
|
|
306
|
+
<span
|
|
307
|
+
className="root"
|
|
308
|
+
>
|
|
309
|
+
<svg
|
|
310
|
+
className="icon"
|
|
311
|
+
fill="none"
|
|
312
|
+
height={24}
|
|
313
|
+
stroke="currentColor"
|
|
314
|
+
strokeLinecap="round"
|
|
315
|
+
strokeLinejoin="round"
|
|
316
|
+
strokeWidth="2"
|
|
317
|
+
viewBox="0 0 24 24"
|
|
318
|
+
width={24}
|
|
319
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
320
|
+
>
|
|
321
|
+
<polyline
|
|
322
|
+
points="6 9 12 15 18 9"
|
|
323
|
+
/>
|
|
324
|
+
</svg>
|
|
325
|
+
</span>
|
|
326
|
+
</button>
|
|
49
327
|
</span>
|
|
50
|
-
<span
|
|
51
|
-
|
|
328
|
+
<span
|
|
329
|
+
className="price"
|
|
330
|
+
>
|
|
331
|
+
-
|
|
332
|
+
<span>
|
|
333
|
+
$
|
|
334
|
+
</span>
|
|
335
|
+
<span>
|
|
336
|
+
1
|
|
337
|
+
</span>
|
|
338
|
+
<span>
|
|
339
|
+
.
|
|
340
|
+
</span>
|
|
341
|
+
<span>
|
|
342
|
+
00
|
|
343
|
+
</span>
|
|
52
344
|
</span>
|
|
53
|
-
|
|
54
|
-
|
|
345
|
+
</li>,
|
|
346
|
+
<div
|
|
347
|
+
aria-hidden={true}
|
|
348
|
+
className="rah-static rah-static--height-zero"
|
|
349
|
+
style={
|
|
350
|
+
Object {
|
|
351
|
+
"height": 0,
|
|
352
|
+
"overflow": "hidden",
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
>
|
|
356
|
+
<div
|
|
357
|
+
style={Object {}}
|
|
358
|
+
>
|
|
359
|
+
<ul
|
|
360
|
+
className="individualDiscountsList"
|
|
361
|
+
>
|
|
362
|
+
<hr
|
|
363
|
+
className="individualDiscountSeparator"
|
|
364
|
+
/>
|
|
365
|
+
<li
|
|
366
|
+
className="individualDiscountsListLineItem"
|
|
367
|
+
>
|
|
368
|
+
<span
|
|
369
|
+
className="lineItemLabel"
|
|
370
|
+
>
|
|
371
|
+
<span>
|
|
372
|
+
Rebate
|
|
373
|
+
</span>
|
|
374
|
+
</span>
|
|
375
|
+
<span
|
|
376
|
+
className="price"
|
|
377
|
+
>
|
|
378
|
+
-
|
|
379
|
+
<span>
|
|
380
|
+
$
|
|
381
|
+
</span>
|
|
382
|
+
<span>
|
|
383
|
+
1
|
|
384
|
+
</span>
|
|
385
|
+
<span>
|
|
386
|
+
.
|
|
387
|
+
</span>
|
|
388
|
+
<span>
|
|
389
|
+
00
|
|
390
|
+
</span>
|
|
391
|
+
</span>
|
|
392
|
+
</li>
|
|
393
|
+
<hr
|
|
394
|
+
className="individualDiscountSeparator"
|
|
395
|
+
/>
|
|
396
|
+
</ul>
|
|
397
|
+
</div>
|
|
398
|
+
</div>,
|
|
399
|
+
]
|
|
400
|
+
`;
|
|
401
|
+
|
|
402
|
+
exports[`renders discount summary line item correctly 1`] = `
|
|
403
|
+
Array [
|
|
404
|
+
<li
|
|
405
|
+
className="discountLineItems"
|
|
406
|
+
>
|
|
407
|
+
<span
|
|
408
|
+
className="discountLineItemLabel"
|
|
409
|
+
>
|
|
410
|
+
<mock-FormattedMessage
|
|
411
|
+
defaultMessage="Applied discounts"
|
|
412
|
+
id="discountSummary.lineItemLabel"
|
|
413
|
+
/>
|
|
414
|
+
<button
|
|
415
|
+
aria-expanded={false}
|
|
416
|
+
aria-label="Show individual discounts."
|
|
417
|
+
className="discountsButton"
|
|
418
|
+
onClick={[Function]}
|
|
419
|
+
type="button"
|
|
420
|
+
>
|
|
421
|
+
<span
|
|
422
|
+
className="root"
|
|
423
|
+
>
|
|
424
|
+
<svg
|
|
425
|
+
className="icon"
|
|
426
|
+
fill="none"
|
|
427
|
+
height={24}
|
|
428
|
+
stroke="currentColor"
|
|
429
|
+
strokeLinecap="round"
|
|
430
|
+
strokeLinejoin="round"
|
|
431
|
+
strokeWidth="2"
|
|
432
|
+
viewBox="0 0 24 24"
|
|
433
|
+
width={24}
|
|
434
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
435
|
+
>
|
|
436
|
+
<polyline
|
|
437
|
+
points="6 9 12 15 18 9"
|
|
438
|
+
/>
|
|
439
|
+
</svg>
|
|
440
|
+
</span>
|
|
441
|
+
</button>
|
|
55
442
|
</span>
|
|
56
|
-
<span
|
|
57
|
-
|
|
443
|
+
<span
|
|
444
|
+
className="price"
|
|
445
|
+
>
|
|
446
|
+
-
|
|
447
|
+
<span>
|
|
448
|
+
$
|
|
449
|
+
</span>
|
|
450
|
+
<span>
|
|
451
|
+
10
|
|
452
|
+
</span>
|
|
453
|
+
<span>
|
|
454
|
+
.
|
|
455
|
+
</span>
|
|
456
|
+
<span>
|
|
457
|
+
00
|
|
458
|
+
</span>
|
|
58
459
|
</span>
|
|
59
|
-
</
|
|
460
|
+
</li>,
|
|
461
|
+
<div
|
|
462
|
+
aria-hidden={true}
|
|
463
|
+
className="rah-static rah-static--height-zero"
|
|
464
|
+
style={
|
|
465
|
+
Object {
|
|
466
|
+
"height": 0,
|
|
467
|
+
"overflow": "hidden",
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
>
|
|
471
|
+
<div
|
|
472
|
+
style={Object {}}
|
|
473
|
+
>
|
|
474
|
+
<ul
|
|
475
|
+
className="individualDiscountsList"
|
|
476
|
+
>
|
|
477
|
+
<hr
|
|
478
|
+
className="individualDiscountSeparator"
|
|
479
|
+
/>
|
|
480
|
+
<li
|
|
481
|
+
className="individualDiscountsListLineItem"
|
|
482
|
+
>
|
|
483
|
+
<span
|
|
484
|
+
className="lineItemLabel"
|
|
485
|
+
>
|
|
486
|
+
<span>
|
|
487
|
+
Special rebate
|
|
488
|
+
</span>
|
|
489
|
+
</span>
|
|
490
|
+
<span
|
|
491
|
+
className="price"
|
|
492
|
+
>
|
|
493
|
+
-
|
|
494
|
+
<span>
|
|
495
|
+
$
|
|
496
|
+
</span>
|
|
497
|
+
<span>
|
|
498
|
+
10
|
|
499
|
+
</span>
|
|
500
|
+
<span>
|
|
501
|
+
.
|
|
502
|
+
</span>
|
|
503
|
+
<span>
|
|
504
|
+
00
|
|
505
|
+
</span>
|
|
506
|
+
</span>
|
|
507
|
+
</li>
|
|
508
|
+
<hr
|
|
509
|
+
className="individualDiscountSeparator"
|
|
510
|
+
/>
|
|
511
|
+
</ul>
|
|
512
|
+
</div>
|
|
513
|
+
</div>,
|
|
60
514
|
]
|
|
61
515
|
`;
|
|
62
516
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[
|
|
3
|
+
exports[`#GiftCardSummary EE renders accumulated gift card value 1`] = `
|
|
4
4
|
Array [
|
|
5
5
|
<span
|
|
6
6
|
className="lineItemLabel"
|
|
@@ -30,7 +30,7 @@ Array [
|
|
|
30
30
|
]
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
|
-
exports[
|
|
33
|
+
exports[`#GiftCardSummary EE renders gift card summary line item correctly 1`] = `
|
|
34
34
|
Array [
|
|
35
35
|
<span
|
|
36
36
|
className="lineItemLabel"
|
|
@@ -60,6 +60,6 @@ Array [
|
|
|
60
60
|
]
|
|
61
61
|
`;
|
|
62
62
|
|
|
63
|
-
exports[
|
|
63
|
+
exports[`#GiftCardSummary EE renders nothing if gift card data is empty 1`] = `null`;
|
|
64
64
|
|
|
65
|
-
exports[
|
|
65
|
+
exports[`#GiftCardSummary EE renders nothing if gift card value is "0" 1`] = `null`;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`#GiftOptionsSummary EE renders accumulated gift options value 1`] = `
|
|
4
|
+
Array [
|
|
5
|
+
<span
|
|
6
|
+
className="lineItemLabel"
|
|
7
|
+
>
|
|
8
|
+
<mock-FormattedMessage
|
|
9
|
+
defaultMessage="Printed Card"
|
|
10
|
+
id="giftOptionsSummary.lineItemLabel"
|
|
11
|
+
/>
|
|
12
|
+
</span>,
|
|
13
|
+
<span
|
|
14
|
+
className="price"
|
|
15
|
+
>
|
|
16
|
+
<span>
|
|
17
|
+
$
|
|
18
|
+
</span>
|
|
19
|
+
<span>
|
|
20
|
+
10
|
|
21
|
+
</span>
|
|
22
|
+
<span>
|
|
23
|
+
.
|
|
24
|
+
</span>
|
|
25
|
+
<span>
|
|
26
|
+
00
|
|
27
|
+
</span>
|
|
28
|
+
</span>,
|
|
29
|
+
]
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
exports[`#GiftOptionsSummary EE renders gift options summary line item correctly 1`] = `
|
|
33
|
+
Array [
|
|
34
|
+
<span
|
|
35
|
+
className="lineItemLabel"
|
|
36
|
+
>
|
|
37
|
+
<mock-FormattedMessage
|
|
38
|
+
defaultMessage="Printed Card"
|
|
39
|
+
id="giftOptionsSummary.lineItemLabel"
|
|
40
|
+
/>
|
|
41
|
+
</span>,
|
|
42
|
+
<span
|
|
43
|
+
className="price"
|
|
44
|
+
>
|
|
45
|
+
<span>
|
|
46
|
+
$
|
|
47
|
+
</span>
|
|
48
|
+
<span>
|
|
49
|
+
10
|
|
50
|
+
</span>
|
|
51
|
+
<span>
|
|
52
|
+
.
|
|
53
|
+
</span>
|
|
54
|
+
<span>
|
|
55
|
+
00
|
|
56
|
+
</span>
|
|
57
|
+
</span>,
|
|
58
|
+
]
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
exports[`#GiftOptionsSummary EE renders nothing if gift options data is empty 1`] = `null`;
|
|
62
|
+
|
|
63
|
+
exports[`#GiftOptionsSummary EE renders nothing if gift options value is "0" 1`] = `null`;
|