@mirai/core 0.3.379 → 0.3.380

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 (68) hide show
  1. package/__tests__/Checkout/__mocks__/checkout-get.json +935 -0
  2. package/__tests__/Checkout/__mocks__/checkout-post-PAYLATER.json +10 -0
  3. package/__tests__/Checkout/__mocks__/checkout-post-TPV.json +7 -0
  4. package/__tests__/Checkout/__mocks__/checkout-post-TRANSFER.json +10 -0
  5. package/__tests__/Checkout/checkout.constants.js +8 -0
  6. package/__tests__/Checkout/checkout.spec.jsx +40 -0
  7. package/__tests__/Checkout/workflows/form.workflow.js +17 -0
  8. package/__tests__/Checkout/workflows/index.js +4 -0
  9. package/__tests__/Checkout/workflows/payment.workflow.js +10 -0
  10. package/__tests__/Checkout/workflows/review.workflow.js +19 -0
  11. package/__tests__/Checkout/workflows/submit.workflow.js +9 -0
  12. package/__tests__/Finder/finder.spec.js +64 -0
  13. package/__tests__/Finder/workflows/calendar.workflow.js +9 -0
  14. package/__tests__/Finder/workflows/index.js +3 -0
  15. package/__tests__/Finder/workflows/occupation.workflow.js +13 -0
  16. package/__tests__/Finder/workflows/promocode.workflow.js +8 -0
  17. package/__tests__/Rates/__mocks__/rates-success.json +731 -0
  18. package/__tests__/Rates/rates.spec.jsx +20 -0
  19. package/__tests__/Session/workflows/forgotPassword.workflow.js +4 -2
  20. package/__tests__/Session/workflows/login.workflow.js +5 -3
  21. package/__tests__/Session/workflows/profile.workflow.js +11 -9
  22. package/__tests__/Signup/workflows/signup.workflow.js +9 -7
  23. package/__tests__/constants.js +18 -0
  24. package/__tests__/helpers/getWeekNumber.js +8 -0
  25. package/__tests__/helpers/index.js +1 -0
  26. package/build/components/Checkout/Checkout.js +1 -0
  27. package/build/components/Checkout/Checkout.js.map +1 -1
  28. package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +16 -16
  29. package/build/components/Checkout/partials/Checkout.Confirmation.js +2 -1
  30. package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
  31. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +6 -0
  32. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +28 -8
  33. package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +114 -114
  34. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +211 -209
  35. package/build/components/Environment/Environment.js +4 -2
  36. package/build/components/Environment/Environment.js.map +1 -1
  37. package/build/components/Finder/Finder.compact.js +10 -5
  38. package/build/components/Finder/Finder.compact.js.map +1 -1
  39. package/build/components/Finder/Finder.constants.js +1 -2
  40. package/build/components/Finder/Finder.constants.js.map +1 -1
  41. package/build/components/Finder/Finder.js +4 -20
  42. package/build/components/Finder/Finder.js.map +1 -1
  43. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +734 -730
  44. package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +419 -419
  45. package/build/components/__shared__/BookingDetails/BookingDetails.js +2 -1
  46. package/build/components/__shared__/BookingDetails/BookingDetails.js.map +1 -1
  47. package/build/components/__shared__/BookingDetails/__tests__/__snapshots__/BookingDetails.test.js.snap +5 -0
  48. package/build/components/__shared__/BookingSummary/BookingSummary.js +2 -1
  49. package/build/components/__shared__/BookingSummary/BookingSummary.js.map +1 -1
  50. package/build/components/__shared__/ButtonMore/ButtonMore.js +1 -1
  51. package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -1
  52. package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +2 -0
  53. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +1 -0
  54. package/build/components/__shared__/FieldPromocode/FieldPromocode.js +4 -2
  55. package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -1
  56. package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +2 -1
  57. package/build/components/__shared__/Occupation/Occupation.Group.js +2 -1
  58. package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -1
  59. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +6 -0
  60. package/build/components/__shared__/Payment/Payment.js +2 -1
  61. package/build/components/__shared__/Payment/Payment.js.map +1 -1
  62. package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +25 -10
  63. package/build/helpers/consolidateStore.js +1 -1
  64. package/build/helpers/consolidateStore.js.map +1 -1
  65. package/package.json +2 -1
  66. package/playwright.config.js +10 -7
  67. package/public/routes/Home.jsx +3 -2
  68. package/__tests__/Finder/finder._spec.js +0 -18
@@ -1369,7 +1369,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
1369
1369
  </ui-label>
1370
1370
  </ui-input-option>
1371
1371
  </form>
1372
- <ui-view
1372
+ <ui-payment
1373
1373
  class="view"
1374
1374
  >
1375
1375
  <ui-view
@@ -1386,6 +1386,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
1386
1386
  >
1387
1387
  <ui-pressable
1388
1388
  class="pressable disabled"
1389
+ data-testid="payments-item-CARD"
1389
1390
  disabled="true"
1390
1391
  >
1391
1392
  <ui-radio
@@ -1404,6 +1405,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
1404
1405
  </ui-radio>
1405
1406
  <ui-text
1406
1407
  class="text bold paragraph"
1408
+ data-testid="payments-text-CARD"
1407
1409
  >
1408
1410
  payments.label.card
1409
1411
  </ui-text>
@@ -1420,6 +1422,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
1420
1422
  </ui-pressable>
1421
1423
  <ui-view
1422
1424
  class="view"
1425
+ data-testid="payments-container-CARD"
1423
1426
  >
1424
1427
  <form
1425
1428
  autocomplete="off"
@@ -1531,6 +1534,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
1531
1534
  >
1532
1535
  <ui-pressable
1533
1536
  class="pressable"
1537
+ data-testid="payments-item-AMAZON_PAY"
1534
1538
  disabled="false"
1535
1539
  tabindex="0"
1536
1540
  >
@@ -1549,6 +1553,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
1549
1553
  </ui-radio>
1550
1554
  <ui-text
1551
1555
  class="text bold paragraph"
1556
+ data-testid="payments-text-AMAZON_PAY"
1552
1557
  >
1553
1558
  payments.label.amazon
1554
1559
  </ui-text>
@@ -1559,7 +1564,7 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
1559
1564
  />
1560
1565
  </ui-pressable>
1561
1566
  </ui-view>
1562
- </ui-view>
1567
+ </ui-payment>
1563
1568
  <ui-modal-overflow
1564
1569
  class="pressable container overflow"
1565
1570
  style="height: 768px;"
@@ -3047,7 +3052,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
3047
3052
  </ui-label>
3048
3053
  </ui-input-option>
3049
3054
  </form>
3050
- <ui-view
3055
+ <ui-payment
3051
3056
  class="view"
3052
3057
  >
3053
3058
  <ui-view
@@ -3064,6 +3069,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
3064
3069
  >
3065
3070
  <ui-pressable
3066
3071
  class="pressable disabled"
3072
+ data-testid="payments-item-CARD"
3067
3073
  disabled="true"
3068
3074
  >
3069
3075
  <ui-radio
@@ -3082,6 +3088,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
3082
3088
  </ui-radio>
3083
3089
  <ui-text
3084
3090
  class="text bold paragraph"
3091
+ data-testid="payments-text-CARD"
3085
3092
  >
3086
3093
  payments.label.card
3087
3094
  </ui-text>
@@ -3098,6 +3105,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
3098
3105
  </ui-pressable>
3099
3106
  <ui-view
3100
3107
  class="view"
3108
+ data-testid="payments-container-CARD"
3101
3109
  >
3102
3110
  <form
3103
3111
  autocomplete="off"
@@ -3209,6 +3217,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
3209
3217
  >
3210
3218
  <ui-pressable
3211
3219
  class="pressable"
3220
+ data-testid="payments-item-AMAZON_PAY"
3212
3221
  disabled="false"
3213
3222
  tabindex="0"
3214
3223
  >
@@ -3227,6 +3236,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
3227
3236
  </ui-radio>
3228
3237
  <ui-text
3229
3238
  class="text bold paragraph"
3239
+ data-testid="payments-text-AMAZON_PAY"
3230
3240
  >
3231
3241
  payments.label.amazon
3232
3242
  </ui-text>
@@ -3237,7 +3247,7 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
3237
3247
  />
3238
3248
  </ui-pressable>
3239
3249
  </ui-view>
3240
- </ui-view>
3250
+ </ui-payment>
3241
3251
  <ui-modal-overflow
3242
3252
  class="pressable container overflow"
3243
3253
  style="height: 768px;"
@@ -4726,7 +4736,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
4726
4736
  </ui-label>
4727
4737
  </ui-input-option>
4728
4738
  </form>
4729
- <ui-view
4739
+ <ui-payment
4730
4740
  class="view"
4731
4741
  >
4732
4742
  <ui-view
@@ -4743,6 +4753,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
4743
4753
  >
4744
4754
  <ui-pressable
4745
4755
  class="pressable disabled"
4756
+ data-testid="payments-item-CARD"
4746
4757
  disabled="true"
4747
4758
  >
4748
4759
  <ui-radio
@@ -4761,6 +4772,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
4761
4772
  </ui-radio>
4762
4773
  <ui-text
4763
4774
  class="text bold paragraph"
4775
+ data-testid="payments-text-CARD"
4764
4776
  >
4765
4777
  payments.label.card
4766
4778
  </ui-text>
@@ -4777,6 +4789,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
4777
4789
  </ui-pressable>
4778
4790
  <ui-view
4779
4791
  class="view"
4792
+ data-testid="payments-container-CARD"
4780
4793
  >
4781
4794
  <form
4782
4795
  autocomplete="off"
@@ -4888,6 +4901,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
4888
4901
  >
4889
4902
  <ui-pressable
4890
4903
  class="pressable"
4904
+ data-testid="payments-item-AMAZON_PAY"
4891
4905
  disabled="false"
4892
4906
  tabindex="0"
4893
4907
  >
@@ -4906,6 +4920,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
4906
4920
  </ui-radio>
4907
4921
  <ui-text
4908
4922
  class="text bold paragraph"
4923
+ data-testid="payments-text-AMAZON_PAY"
4909
4924
  >
4910
4925
  payments.label.amazon
4911
4926
  </ui-text>
@@ -4916,7 +4931,7 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
4916
4931
  />
4917
4932
  </ui-pressable>
4918
4933
  </ui-view>
4919
- </ui-view>
4934
+ </ui-payment>
4920
4935
  <ui-modal-overflow
4921
4936
  class="pressable container overflow"
4922
4937
  style="height: 768px;"
@@ -6404,7 +6419,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
6404
6419
  </ui-label>
6405
6420
  </ui-input-option>
6406
6421
  </form>
6407
- <ui-view
6422
+ <ui-payment
6408
6423
  class="view"
6409
6424
  >
6410
6425
  <ui-view
@@ -6421,6 +6436,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
6421
6436
  >
6422
6437
  <ui-pressable
6423
6438
  class="pressable disabled"
6439
+ data-testid="payments-item-CARD"
6424
6440
  disabled="true"
6425
6441
  >
6426
6442
  <ui-radio
@@ -6439,6 +6455,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
6439
6455
  </ui-radio>
6440
6456
  <ui-text
6441
6457
  class="text bold paragraph"
6458
+ data-testid="payments-text-CARD"
6442
6459
  >
6443
6460
  payments.label.card
6444
6461
  </ui-text>
@@ -6455,6 +6472,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
6455
6472
  </ui-pressable>
6456
6473
  <ui-view
6457
6474
  class="view"
6475
+ data-testid="payments-container-CARD"
6458
6476
  >
6459
6477
  <form
6460
6478
  autocomplete="off"
@@ -6566,6 +6584,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
6566
6584
  >
6567
6585
  <ui-pressable
6568
6586
  class="pressable"
6587
+ data-testid="payments-item-AMAZON_PAY"
6569
6588
  disabled="false"
6570
6589
  tabindex="0"
6571
6590
  >
@@ -6584,6 +6603,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
6584
6603
  </ui-radio>
6585
6604
  <ui-text
6586
6605
  class="text bold paragraph"
6606
+ data-testid="payments-text-AMAZON_PAY"
6587
6607
  >
6588
6608
  payments.label.amazon
6589
6609
  </ui-text>
@@ -6594,7 +6614,7 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
6594
6614
  />
6595
6615
  </ui-pressable>
6596
6616
  </ui-view>
6597
- </ui-view>
6617
+ </ui-payment>
6598
6618
  <ui-modal-overflow
6599
6619
  class="pressable container overflow"
6600
6620
  style="height: 768px;"