@magento/venia-ui 11.5.0 → 11.6.0-alpha.13

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.
Files changed (52) hide show
  1. package/lib/RootComponents/Category/__tests__/__snapshots__/categoryContent.shimmer.spec.js.snap +12 -12
  2. package/lib/RootComponents/Category/categoryContent.js +2 -1
  3. package/lib/components/AuthBar/authBar.js +6 -4
  4. package/lib/components/ButtonTab/button.module.css +123 -0
  5. package/lib/components/ButtonTab/buttonTab.js +99 -0
  6. package/lib/components/ButtonTab/index.js +1 -0
  7. package/lib/components/CartPage/PriceSummary/__tests__/__snapshots__/priceSummary.spec.js.snap +0 -2
  8. package/lib/components/CartPage/PriceSummary/priceSummary.js +1 -0
  9. package/lib/components/CartPage/ProductListing/EditModal/__tests__/__snapshots__/productForm.spec.js.snap +2 -2
  10. package/lib/components/CartPage/__tests__/__snapshots__/cartPage.spec.js.snap +12 -6
  11. package/lib/components/CartPage/cartPage.js +12 -6
  12. package/lib/components/CheckoutPage/ItemsReview/__tests__/__snapshots__/itemsReview.spec.js.snap +3 -3
  13. package/lib/components/CheckoutPage/ItemsReview/itemsReview.js +1 -16
  14. package/lib/components/CheckoutPage/OrderConfirmationPage/__fixtures__/cartItems.js +33 -0
  15. package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/__snapshots__/orderConfirmationPage.spec.js.snap +135 -1
  16. package/lib/components/CheckoutPage/OrderConfirmationPage/__tests__/orderConfirmationPage.spec.js +40 -3
  17. package/lib/components/CheckoutPage/OrderConfirmationPage/orderConfirmationPage.js +118 -103
  18. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/__tests__/__snapshots__/guestForm.spec.js.snap +12 -36
  19. package/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js +1 -1
  20. package/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap +8 -16
  21. package/lib/components/CheckoutPage/ShippingMethod/shippingMethod.js +1 -1
  22. package/lib/components/CheckoutPage/__tests__/__snapshots__/checkoutPage.spec.js.snap +1 -1
  23. package/lib/components/CheckoutPage/checkoutPage.js +16 -7
  24. package/lib/components/CreateAccount/__tests__/createAccount.spec.js +30 -0
  25. package/lib/components/CreateAccount/createAccount.js +2 -2
  26. package/lib/components/FilterModal/CurrentFilters/__tests__/currentFilter.spec.js +6 -1
  27. package/lib/components/FilterModal/CurrentFilters/currentFilter.js +12 -2
  28. package/lib/components/FilterModal/FilterList/__tests__/filterList.spec.js +16 -3
  29. package/lib/components/FilterModal/FilterList/filterList.js +81 -31
  30. package/lib/components/FilterModal/filterBlock.js +2 -1
  31. package/lib/components/FilterSidebar/__tests__/filterSidebar.spec.js +51 -19
  32. package/lib/components/FilterSidebar/filterSidebar.js +36 -2
  33. package/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +2 -2
  34. package/lib/components/Gallery/__tests__/__snapshots__/item.spec.js.snap +3 -3
  35. package/lib/components/MiniCart/ProductList/__tests__/__snapshots__/item.spec.js.snap +4 -4
  36. package/lib/components/MiniCart/miniCart.js +16 -12
  37. package/lib/components/Newsletter/__tests__/__snapshots__/newsletter.spec.js.snap +4 -4
  38. package/lib/components/Newsletter/newsletter.js +2 -2
  39. package/lib/components/OrderHistoryPage/OrderDetails/__tests__/__snapshots__/item.spec.js.snap +1 -1
  40. package/lib/components/OrderHistoryPage/collapsedImageGallery.js +3 -0
  41. package/lib/components/ProductImageCarousel/__tests__/__snapshots__/carousel.spec.js.snap +7 -7
  42. package/lib/components/ProductImageCarousel/__tests__/__snapshots__/thumbnail.spec.js.snap +4 -4
  43. package/lib/components/RangeSlider/rangeSlider.js +127 -0
  44. package/lib/components/RangeSlider/rangeSlider.module.css +76 -0
  45. package/lib/components/SearchBar/__tests__/__snapshots__/suggestedProduct.spec.js.snap +1 -1
  46. package/lib/components/SignIn/__tests__/__snapshots__/signIn.spec.js.snap +6 -6
  47. package/lib/components/SignIn/__tests__/signIn.spec.js +31 -0
  48. package/lib/components/SignIn/signIn.js +3 -5
  49. package/lib/components/WishlistPage/__tests__/__snapshots__/wishlistItem.spec.js.snap +2 -2
  50. package/lib/defaultRoutes.json +6 -0
  51. package/package.json +4 -4
  52. package/upward.yml +31 -1
@@ -51,7 +51,42 @@ exports[`OrderConfirmationPage renders OrderConfirmationPage component 1`] = `
51
51
  Flat Rate - Fixed
52
52
  </div>
53
53
  <div>
54
- <ItemsReview />
54
+ <ItemsReview
55
+ items={
56
+ Array [
57
+ Object {
58
+ "__typename": "ConfigurableCartItem",
59
+ "configurable_options": Array [
60
+ Object {
61
+ "__typename": "SelectedConfigurableOption",
62
+ "configurable_product_option_uid": 179,
63
+ "configurable_product_option_value_uid": 18,
64
+ "option_label": "Fashion Color",
65
+ "value_label": "Peach",
66
+ },
67
+ Object {
68
+ "__typename": "SelectedConfigurableOption",
69
+ "configurable_product_option_uid": 182,
70
+ "configurable_product_option_value_uid": 27,
71
+ "option_label": "Fashion Size",
72
+ "value_label": "M",
73
+ },
74
+ ],
75
+ "id": "29568",
76
+ "product": Object {
77
+ "__typename": "ConfigurableProduct",
78
+ "id": 1093,
79
+ "name": "Jillian Top",
80
+ "thumbnail": Object {
81
+ "__typename": "ProductImage",
82
+ "url": "https://master-7rqtwti-c5v7sxvquxwl4.us-4.magentosite.cloud/media/catalog/product/cache/d3ba9f7bcd3b0724e976dc5144b29c7d/v/t/vt12-kh_main_2.jpg",
83
+ },
84
+ },
85
+ "quantity": 3,
86
+ },
87
+ ]
88
+ }
89
+ />
55
90
  </div>
56
91
  <div>
57
92
  <mock-FormattedMessage
@@ -69,3 +104,102 @@ exports[`OrderConfirmationPage renders OrderConfirmationPage component 1`] = `
69
104
  </div>
70
105
  </div>
71
106
  `;
107
+
108
+ exports[`OrderConfirmationPage renders component using location state when there are no props provided 1`] = `
109
+ <div>
110
+ Title
111
+ <div>
112
+ <h2>
113
+ <mock-FormattedMessage
114
+ defaultMessage="Thank you for your order!"
115
+ id="checkoutPage.thankYou"
116
+ />
117
+ </h2>
118
+ <div>
119
+ <mock-FormattedMessage
120
+ defaultMessage="Order Number: {orderNumber}"
121
+ id="checkoutPage.orderNumber"
122
+ values={
123
+ Object {
124
+ "orderNumber": 123,
125
+ }
126
+ }
127
+ />
128
+ </div>
129
+ <div>
130
+ <mock-FormattedMessage
131
+ defaultMessage="Shipping Information"
132
+ id="global.shippingInformation"
133
+ />
134
+ </div>
135
+ <div>
136
+ <span>
137
+ badvirus@covid.com
138
+ </span>
139
+ <span>
140
+ Stuck Indoors
141
+ </span>
142
+ <span>
143
+ 123 Stir Crazy Dr.
144
+ </span>
145
+ <span>
146
+ Austin, TX 91111 US
147
+ </span>
148
+ </div>
149
+ <div>
150
+ <mock-FormattedMessage
151
+ defaultMessage="Shipping Method"
152
+ id="global.shippingMethod"
153
+ />
154
+ </div>
155
+ <div>
156
+ Flat Rate - Fixed
157
+ </div>
158
+ <div>
159
+ <ItemsReview
160
+ items={
161
+ Array [
162
+ Object {
163
+ "__typename": "ConfigurableCartItem",
164
+ "configurable_options": Array [
165
+ Object {
166
+ "__typename": "SelectedConfigurableOption",
167
+ "configurable_product_option_uid": 179,
168
+ "configurable_product_option_value_uid": 18,
169
+ "option_label": "Fashion Color",
170
+ "value_label": "Peach",
171
+ },
172
+ Object {
173
+ "__typename": "SelectedConfigurableOption",
174
+ "configurable_product_option_uid": 182,
175
+ "configurable_product_option_value_uid": 27,
176
+ "option_label": "Fashion Size",
177
+ "value_label": "M",
178
+ },
179
+ ],
180
+ "id": "29568",
181
+ "product": Object {
182
+ "__typename": "ConfigurableProduct",
183
+ "id": 1093,
184
+ "name": "Jillian Top",
185
+ "thumbnail": Object {
186
+ "__typename": "ProductImage",
187
+ "url": "https://master-7rqtwti-c5v7sxvquxwl4.us-4.magentosite.cloud/media/catalog/product/cache/d3ba9f7bcd3b0724e976dc5144b29c7d/v/t/vt12-kh_main_2.jpg",
188
+ },
189
+ },
190
+ "quantity": 3,
191
+ },
192
+ ]
193
+ }
194
+ />
195
+ </div>
196
+ <div>
197
+ <mock-FormattedMessage
198
+ defaultMessage="You will also receive an email with the details and we will let you know when your order has shipped."
199
+ id="checkoutPage.additionalText"
200
+ />
201
+ </div>
202
+ </div>
203
+ <div />
204
+ </div>
205
+ `;
@@ -5,6 +5,9 @@ import { useOrderConfirmationPage } from '@magento/peregrine/lib/talons/Checkout
5
5
  import OrderConfirmationPage from '../orderConfirmationPage';
6
6
  import CreateAccount from '../createAccount';
7
7
 
8
+ import { useLocation } from 'react-router-dom';
9
+ import cartItems from '../__fixtures__/cartItems';
10
+
8
11
  jest.mock('@magento/peregrine', () => {
9
12
  const actual = jest.requireActual('@magento/peregrine');
10
13
  const useToasts = jest.fn().mockReturnValue([{}, { addToast: jest.fn() }]);
@@ -27,6 +30,12 @@ jest.mock('../../../../components/Head', () => ({ StoreTitle: () => 'Title' }));
27
30
  jest.mock('../createAccount', () => 'CreateAccount');
28
31
  jest.mock('../../ItemsReview', () => 'ItemsReview');
29
32
 
33
+ jest.mock('react-router-dom', () => {
34
+ return {
35
+ useLocation: jest.fn().mockReturnValue(jest.fn())
36
+ };
37
+ });
38
+
30
39
  const defaultTalonProps = {
31
40
  flatData: {
32
41
  city: 'Austin',
@@ -46,23 +55,51 @@ describe('OrderConfirmationPage', () => {
46
55
  beforeEach(() => {
47
56
  globalThis.scrollTo = jest.fn();
48
57
  });
58
+
49
59
  test('renders OrderConfirmationPage component', () => {
50
60
  useOrderConfirmationPage.mockReturnValue({
51
61
  ...defaultTalonProps
52
62
  });
63
+ const mockData = {
64
+ cart: {
65
+ items: cartItems
66
+ }
67
+ };
53
68
  const instance = createTestInstance(
54
- <OrderConfirmationPage orderNumber={123} />
69
+ <OrderConfirmationPage orderNumber={123} data={mockData} />
55
70
  );
56
71
  expect(instance.toJSON()).toMatchSnapshot();
57
72
  });
58
73
 
74
+ test('renders component using location state when there are no props provided', () => {
75
+ useOrderConfirmationPage.mockReturnValue({
76
+ ...defaultTalonProps,
77
+ isSignedIn: true
78
+ });
79
+ useLocation.mockReturnValue({
80
+ state: {
81
+ orderNumber: 123,
82
+ items: cartItems
83
+ }
84
+ });
85
+ const instance = createTestInstance(<OrderConfirmationPage />);
86
+ expect(instance.toJSON()).toMatchSnapshot();
87
+ });
88
+
59
89
  test('renders CreateAccount view if not signed in', () => {
60
90
  useOrderConfirmationPage.mockReturnValueOnce({
61
91
  ...defaultTalonProps,
62
- isDisabled: true
92
+ isSignedIn: false
63
93
  });
94
+ const mockData = {
95
+ cart: {
96
+ items: cartItems
97
+ }
98
+ };
64
99
 
65
- const instance = createTestInstance(<OrderConfirmationPage />);
100
+ const instance = createTestInstance(
101
+ <OrderConfirmationPage orderNumber={123} data={mockData} />
102
+ );
66
103
  const component = instance.root.findByType(CreateAccount);
67
104
 
68
105
  expect(component).toBeTruthy();
@@ -3,6 +3,8 @@ import { FormattedMessage, useIntl } from 'react-intl';
3
3
  import { object, shape, string } from 'prop-types';
4
4
  import { useOrderConfirmationPage } from '@magento/peregrine/lib/talons/CheckoutPage/OrderConfirmationPage/useOrderConfirmationPage';
5
5
 
6
+ import { useLocation } from 'react-router-dom';
7
+ import { fullPageLoadingIndicator } from '../../LoadingIndicator';
6
8
  import { useStyle } from '../../../classify';
7
9
  import { StoreTitle } from '../../../components/Head';
8
10
  import CreateAccount from './createAccount';
@@ -11,34 +13,19 @@ import defaultClasses from './orderConfirmationPage.module.css';
11
13
 
12
14
  const OrderConfirmationPage = props => {
13
15
  const classes = useStyle(defaultClasses, props.classes);
14
- const { data, orderNumber } = props;
16
+ const location = useLocation();
17
+ const data = props.data;
18
+ const orderNumber = props.orderNumber || location.state.orderNumber;
19
+ const cartItems = data ? data.cart.items : location.state.items;
20
+
15
21
  const { formatMessage } = useIntl();
16
22
 
17
23
  const talonProps = useOrderConfirmationPage({
18
- data
24
+ data,
25
+ orderNumber
19
26
  });
20
27
 
21
- const { flatData, isSignedIn } = talonProps;
22
-
23
- const {
24
- city,
25
- country,
26
- email,
27
- firstname,
28
- lastname,
29
- postcode,
30
- region,
31
- shippingMethod,
32
- street
33
- } = flatData;
34
-
35
- const streetRows = street.map((row, index) => {
36
- return (
37
- <span key={index} className={classes.addressStreet}>
38
- {row}
39
- </span>
40
- );
41
- });
28
+ const { flatData, isSignedIn, loading } = talonProps;
42
29
 
43
30
  useEffect(() => {
44
31
  const { scrollTo } = globalThis;
@@ -52,90 +39,118 @@ const OrderConfirmationPage = props => {
52
39
  }
53
40
  }, []);
54
41
 
55
- const createAccountForm = !isSignedIn ? (
56
- <CreateAccount
57
- firstname={firstname}
58
- lastname={lastname}
59
- email={email}
60
- />
61
- ) : null;
42
+ if (!flatData || loading) {
43
+ return fullPageLoadingIndicator;
44
+ } else {
45
+ const {
46
+ city,
47
+ country,
48
+ email,
49
+ firstname,
50
+ lastname,
51
+ postcode,
52
+ region,
53
+ shippingMethod,
54
+ street
55
+ } = flatData;
62
56
 
63
- const nameString = `${firstname} ${lastname}`;
64
- const additionalAddressString = `${city}, ${region} ${postcode} ${country}`;
57
+ const streetRows = street.map((row, index) => {
58
+ return (
59
+ <span key={index} className={classes.addressStreet}>
60
+ {row}
61
+ </span>
62
+ );
63
+ });
65
64
 
66
- return (
67
- <div className={classes.root} data-cy="OrderConfirmationPage-root">
68
- <StoreTitle>
69
- {formatMessage({
70
- id: 'checkoutPage.titleReceipt',
71
- defaultMessage: 'Receipt'
72
- })}
73
- </StoreTitle>
74
- <div className={classes.mainContainer}>
75
- <h2
76
- data-cy="OrderConfirmationPage-header"
77
- className={classes.heading}
78
- >
79
- <FormattedMessage
80
- id={'checkoutPage.thankYou'}
81
- defaultMessage={'Thank you for your order!'}
82
- />
83
- </h2>
84
- <div
85
- data-cy="OrderConfirmationPage-orderNumber"
86
- className={classes.orderNumber}
87
- >
88
- <FormattedMessage
89
- id={'checkoutPage.orderNumber'}
90
- defaultMessage={'Order Number: {orderNumber}'}
91
- values={{ orderNumber }}
92
- />
93
- </div>
94
- <div
95
- data-cy="OrderConfirmationPage-shippingInfoHeading"
96
- className={classes.shippingInfoHeading}
97
- >
98
- <FormattedMessage
99
- id={'global.shippingInformation'}
100
- defaultMessage={'Shipping Information'}
101
- />
102
- </div>
103
- <div className={classes.shippingInfo}>
104
- <span className={classes.email}>{email}</span>
105
- <span className={classes.name}>{nameString}</span>
106
- {streetRows}
107
- <span className={classes.addressAdditional}>
108
- {additionalAddressString}
109
- </span>
110
- </div>
111
- <div
112
- data-cy="OrderConfirmationPage-shippingMethodHeading"
113
- className={classes.shippingMethodHeading}
114
- >
115
- <FormattedMessage
116
- id={'global.shippingMethod'}
117
- defaultMessage={'Shipping Method'}
118
- />
119
- </div>
120
- <div className={classes.shippingMethod}>{shippingMethod}</div>
121
- <div className={classes.itemsReview}>
122
- <ItemsReview data={data} />
65
+ const createAccountForm = !isSignedIn ? (
66
+ <CreateAccount
67
+ firstname={firstname}
68
+ lastname={lastname}
69
+ email={email}
70
+ />
71
+ ) : null;
72
+
73
+ const nameString = `${firstname} ${lastname}`;
74
+ const additionalAddressString = `${city}, ${region} ${postcode} ${country}`;
75
+
76
+ return (
77
+ <div className={classes.root} data-cy="OrderConfirmationPage-root">
78
+ <StoreTitle>
79
+ {formatMessage({
80
+ id: 'checkoutPage.titleReceipt',
81
+ defaultMessage: 'Receipt'
82
+ })}
83
+ </StoreTitle>
84
+ <div className={classes.mainContainer}>
85
+ <h2
86
+ data-cy="OrderConfirmationPage-header"
87
+ className={classes.heading}
88
+ >
89
+ <FormattedMessage
90
+ id={'checkoutPage.thankYou'}
91
+ defaultMessage={'Thank you for your order!'}
92
+ />
93
+ </h2>
94
+ <div
95
+ data-cy="OrderConfirmationPage-orderNumber"
96
+ className={classes.orderNumber}
97
+ >
98
+ <FormattedMessage
99
+ id={'checkoutPage.orderNumber'}
100
+ defaultMessage={'Order Number: {orderNumber}'}
101
+ values={{ orderNumber }}
102
+ />
103
+ </div>
104
+ <div
105
+ data-cy="OrderConfirmationPage-shippingInfoHeading"
106
+ className={classes.shippingInfoHeading}
107
+ >
108
+ <FormattedMessage
109
+ id={'global.shippingInformation'}
110
+ defaultMessage={'Shipping Information'}
111
+ />
112
+ </div>
113
+ <div className={classes.shippingInfo}>
114
+ <span className={classes.email}>{email}</span>
115
+ <span className={classes.name}>{nameString}</span>
116
+ {streetRows}
117
+ <span className={classes.addressAdditional}>
118
+ {additionalAddressString}
119
+ </span>
120
+ </div>
121
+ <div
122
+ data-cy="OrderConfirmationPage-shippingMethodHeading"
123
+ className={classes.shippingMethodHeading}
124
+ >
125
+ <FormattedMessage
126
+ id={'global.shippingMethod'}
127
+ defaultMessage={'Shipping Method'}
128
+ />
129
+ </div>
130
+ <div className={classes.shippingMethod}>
131
+ {shippingMethod}
132
+ </div>
133
+ <div className={classes.itemsReview}>
134
+ <ItemsReview items={cartItems} />
135
+ </div>
136
+ <div
137
+ data-cy="OrderConfirmationPage-additionalText"
138
+ className={classes.additionalText}
139
+ >
140
+ <FormattedMessage
141
+ id={'checkoutPage.additionalText'}
142
+ defaultMessage={
143
+ 'You will also receive an email with the details and we will let you know when your order has shipped.'
144
+ }
145
+ />
146
+ </div>
123
147
  </div>
124
- <div
125
- data-cy="OrderConfirmationPage-additionalText"
126
- className={classes.additionalText}
127
- >
128
- <FormattedMessage
129
- id={'checkoutPage.additionalText'}
130
- defaultMessage={
131
- 'You will also receive an email with the details and we will let you know when your order has shipped.'
132
- }
133
- />
148
+ <div className={classes.sidebarContainer}>
149
+ {createAccountForm}
134
150
  </div>
135
151
  </div>
136
- <div className={classes.sidebarContainer}>{createAccountForm}</div>
137
- </div>
138
- );
152
+ );
153
+ }
139
154
  };
140
155
 
141
156
  export default OrderConfirmationPage;
@@ -157,6 +172,6 @@ OrderConfirmationPage.propTypes = {
157
172
  additionalText: string,
158
173
  sidebarContainer: string
159
174
  }),
160
- data: object.isRequired,
175
+ data: object,
161
176
  orderNumber: string
162
177
  };
@@ -451,11 +451,7 @@ Array [
451
451
  onTouchStart={[Function]}
452
452
  type="submit"
453
453
  >
454
- <span
455
- className="content"
456
- >
457
- Continue to Shipping Method
458
- </span>
454
+ Continue to Shipping Method
459
455
  </button>
460
456
  </div>
461
457
  </form>,
@@ -917,11 +913,7 @@ Array [
917
913
  onTouchStart={[Function]}
918
914
  type="submit"
919
915
  >
920
- <span
921
- className="content"
922
- >
923
- Continue to Shipping Method
924
- </span>
916
+ Continue to Shipping Method
925
917
  </button>
926
918
  </div>
927
919
  </form>,
@@ -1371,14 +1363,10 @@ Array [
1371
1363
  onTouchStart={[Function]}
1372
1364
  type="button"
1373
1365
  >
1374
- <span
1375
- className="content"
1376
- >
1377
- <mock-FormattedMessage
1378
- defaultMessage="Cancel"
1379
- id="global.cancelButton"
1380
- />
1381
- </span>
1366
+ <mock-FormattedMessage
1367
+ defaultMessage="Cancel"
1368
+ id="global.cancelButton"
1369
+ />
1382
1370
  </button>
1383
1371
  <button
1384
1372
  className="root_highPriority"
@@ -1396,11 +1384,7 @@ Array [
1396
1384
  onTouchStart={[Function]}
1397
1385
  type="submit"
1398
1386
  >
1399
- <span
1400
- className="content"
1401
- >
1402
- Update
1403
- </span>
1387
+ Update
1404
1388
  </button>
1405
1389
  </div>
1406
1390
  </form>,
@@ -1850,14 +1834,10 @@ Array [
1850
1834
  onTouchStart={[Function]}
1851
1835
  type="button"
1852
1836
  >
1853
- <span
1854
- className="content"
1855
- >
1856
- <mock-FormattedMessage
1857
- defaultMessage="Cancel"
1858
- id="global.cancelButton"
1859
- />
1860
- </span>
1837
+ <mock-FormattedMessage
1838
+ defaultMessage="Cancel"
1839
+ id="global.cancelButton"
1840
+ />
1861
1841
  </button>
1862
1842
  <button
1863
1843
  className="root_highPriority"
@@ -1875,11 +1855,7 @@ Array [
1875
1855
  onTouchStart={[Function]}
1876
1856
  type="submit"
1877
1857
  >
1878
- <span
1879
- className="content"
1880
- >
1881
- Update
1882
- </span>
1858
+ Update
1883
1859
  </button>
1884
1860
  </div>
1885
1861
  </form>,
@@ -8,7 +8,7 @@ import { useToasts } from '@magento/peregrine';
8
8
 
9
9
  import { useStyle } from '../../../../classify';
10
10
  import { isRequired } from '../../../../util/formValidators';
11
- import Button from '../../../Button';
11
+ import Button from '../../../ButtonTab';
12
12
  import Country from '../../../Country';
13
13
  import Field, { Message } from '../../../Field';
14
14
  import FormError from '../../../FormError';
@@ -107,14 +107,10 @@ exports[`it disables inputs when the page is updating 1`] = `
107
107
  onTouchStart={[Function]}
108
108
  type="submit"
109
109
  >
110
- <span
111
- className="content"
112
- >
113
- <mock-FormattedMessage
114
- defaultMessage="Continue to Payment Information"
115
- id="shippingMethod.continueToNextStep"
116
- />
117
- </span>
110
+ <mock-FormattedMessage
111
+ defaultMessage="Continue to Payment Information"
112
+ id="shippingMethod.continueToNextStep"
113
+ />
118
114
  </button>
119
115
  </div>
120
116
  </form>
@@ -228,14 +224,10 @@ exports[`it renders correctly 1`] = `
228
224
  onTouchStart={[Function]}
229
225
  type="submit"
230
226
  >
231
- <span
232
- className="content"
233
- >
234
- <mock-FormattedMessage
235
- defaultMessage="Continue to Payment Information"
236
- id="shippingMethod.continueToNextStep"
237
- />
238
- </span>
227
+ <mock-FormattedMessage
228
+ defaultMessage="Continue to Payment Information"
229
+ id="shippingMethod.continueToNextStep"
230
+ />
239
231
  </button>
240
232
  </div>
241
233
  </form>
@@ -9,7 +9,7 @@ import {
9
9
  } from '@magento/peregrine/lib/talons/CheckoutPage/ShippingMethod/useShippingMethod';
10
10
 
11
11
  import { useStyle } from '../../../classify';
12
- import Button from '../../Button';
12
+ import Button from '../../ButtonTab';
13
13
  import FormError from '../../FormError';
14
14
  import LoadingIndicator from '../../LoadingIndicator';
15
15
  import CompletedView from './completedView';
@@ -237,7 +237,6 @@ exports[`CheckoutPage renders an error and disables review order button if there
237
237
  onTouchCancel={[Function]}
238
238
  onTouchEnd={[Function]}
239
239
  onTouchMove={[Function]}
240
- onTouchStart={[Function]}
241
240
  type="button"
242
241
  >
243
242
  <span
@@ -890,6 +889,7 @@ Object {
890
889
  "negative": false,
891
890
  "onClick": [MockFunction handleReviewOrder],
892
891
  "onKeyDown": undefined,
892
+ "onTouchStart": [MockFunction handleReviewOrder],
893
893
  "priority": "high",
894
894
  "type": "button",
895
895
  }