@mirai/core 0.4.36 → 0.4.38

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 (211) hide show
  1. package/build/contexts/PerformanceManager/PerformanceManager.scripts.js +1 -1
  2. package/build/contexts/PerformanceManager/PerformanceManager.scripts.js.map +1 -1
  3. package/package.json +1 -1
  4. package/.env +0 -22
  5. package/.gitlab-ci.yml +0 -4
  6. package/.nvmrc +0 -1
  7. package/__tests__/Booking/__mocks__/booking-delete.json +0 -1
  8. package/__tests__/Booking/__mocks__/booking-get.json +0 -105
  9. package/__tests__/Booking/booking.constants.js +0 -8
  10. package/__tests__/Booking/workflows/cancel.workflow.js +0 -20
  11. package/__tests__/Booking/workflows/index.js +0 -5
  12. package/__tests__/Booking/workflows/openMobileMenu.workflow.js +0 -4
  13. package/__tests__/Booking/workflows/print.workflow.js +0 -13
  14. package/__tests__/Booking/workflows/resend.workflow.js +0 -18
  15. package/__tests__/Booking/workflows/review.workflow.js +0 -17
  16. package/__tests__/BookingQuery/__mocks__/user-booking-get.json +0 -9
  17. package/__tests__/BookingQuery/workflows/index.js +0 -1
  18. package/__tests__/BookingQuery/workflows/login.workflow.js +0 -22
  19. package/__tests__/Checkout/__mocks__/checkout-get.json +0 -935
  20. package/__tests__/Checkout/__mocks__/checkout-post-PAYLATER.json +0 -10
  21. package/__tests__/Checkout/__mocks__/checkout-post-TPV.json +0 -7
  22. package/__tests__/Checkout/__mocks__/checkout-post-TRANSFER.json +0 -10
  23. package/__tests__/Checkout/checkout.constants.js +0 -8
  24. package/__tests__/Checkout/workflows/form.workflow.js +0 -17
  25. package/__tests__/Checkout/workflows/index.js +0 -4
  26. package/__tests__/Checkout/workflows/payment.workflow.js +0 -10
  27. package/__tests__/Checkout/workflows/review.workflow.js +0 -19
  28. package/__tests__/Checkout/workflows/submit.workflow.js +0 -9
  29. package/__tests__/Deals/__mocks__/deals-success.json +0 -739
  30. package/__tests__/Deals/workflows/calendar.workflow.js +0 -14
  31. package/__tests__/Deals/workflows/clear.workflow.js +0 -7
  32. package/__tests__/Deals/workflows/index.js +0 -5
  33. package/__tests__/Deals/workflows/occupation.workflow.js +0 -6
  34. package/__tests__/Deals/workflows/promocode.workflow.js +0 -3
  35. package/__tests__/Deals/workflows/submit.workflow.js +0 -6
  36. package/__tests__/Finder/workflows/calendar.workflow.js +0 -10
  37. package/__tests__/Finder/workflows/index.js +0 -3
  38. package/__tests__/Finder/workflows/occupation.workflow.js +0 -27
  39. package/__tests__/Finder/workflows/promocode.workflow.js +0 -8
  40. package/__tests__/Rates/__mocks__/extras-one-success.json +0 -138
  41. package/__tests__/Rates/__mocks__/extras-success.json +0 -397
  42. package/__tests__/Rates/__mocks__/rates-success.json +0 -731
  43. package/__tests__/Rates/workflows/extras.js +0 -9
  44. package/__tests__/Rates/workflows/extrasExpect.js +0 -11
  45. package/__tests__/Rates/workflows/index.js +0 -4
  46. package/__tests__/Rates/workflows/multiroom.js +0 -26
  47. package/__tests__/Rates/workflows/rates.js +0 -9
  48. package/__tests__/Session/workflows/bookings.workflow.js +0 -18
  49. package/__tests__/Session/workflows/forgotPassword.workflow.js +0 -20
  50. package/__tests__/Session/workflows/index.js +0 -5
  51. package/__tests__/Session/workflows/login.workflow.js +0 -29
  52. package/__tests__/Session/workflows/logout.workflow.js +0 -8
  53. package/__tests__/Session/workflows/profile.workflow.js +0 -49
  54. package/__tests__/Signup/workflows/index.js +0 -2
  55. package/__tests__/Signup/workflows/signup.workflow.js +0 -26
  56. package/__tests__/Signup/workflows/signupError.workflow.js +0 -22
  57. package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-one-extras-1.png +0 -0
  58. package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-some-extras-1.png +0 -0
  59. package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-one-extras-1.png +0 -0
  60. package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-some-extras-1.png +0 -0
  61. package/__tests__/booking.spec.jsx +0 -34
  62. package/__tests__/bookingQuey.spec.js +0 -43
  63. package/__tests__/buttonFinder.spec.js +0 -16
  64. package/__tests__/checkout.spec.jsx +0 -52
  65. package/__tests__/constants.js +0 -20
  66. package/__tests__/deals.spec.js +0 -30
  67. package/__tests__/finder.spec.js +0 -75
  68. package/__tests__/helpers/closeNotification.js +0 -7
  69. package/__tests__/helpers/getWeekNumber.js +0 -8
  70. package/__tests__/helpers/index.js +0 -2
  71. package/__tests__/rates.spec.jsx +0 -39
  72. package/__tests__/session.spec.js +0 -32
  73. package/__tests__/signup.spec.js +0 -17
  74. package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.skeleton.test.js.snap +0 -287
  75. package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.test.js.snap +0 -102
  76. package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +0 -1302
  77. package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +0 -139
  78. package/build/components/Booking/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -108
  79. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormCancel.test.js.snap +0 -546
  80. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormEdit.test.js.snap +0 -46
  81. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormResend.test.js.snap +0 -166
  82. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Information.test.js.snap +0 -110
  83. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +0 -82
  84. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +0 -432
  85. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalAgency.test.js.snap +0 -319
  86. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Payment.test.js.snap +0 -178
  87. package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +0 -1048
  88. package/build/components/ButtonFinder/__tests__/__snapshots__/ButtonFinder.test.js.snap +0 -8210
  89. package/build/components/Chat/__tests__/__snapshots__/Chat.constants.test.js.snap +0 -30
  90. package/build/components/Chat/__tests__/__snapshots__/Chat.test.js.snap +0 -634
  91. package/build/components/Chat/components/Avatar/__tests__/__snapshots__/Avatar.test.jsx.snap +0 -97
  92. package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +0 -178
  93. package/build/components/Chat/components/InputRich/__tests__/__snapshots__/InputRich.test.jsx.snap +0 -282
  94. package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +0 -211
  95. package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Booking.test.js.snap +0 -65
  96. package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Card.test.js.snap +0 -29
  97. package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Environment.test.js.snap +0 -44
  98. package/build/components/Chat/components/Offline/__tests__/__snapshots__/Offline.test.js.snap +0 -162
  99. package/build/components/Chat/helpers/__tests__/__snapshots__/getVerboseDate.test.js.snap +0 -9
  100. package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +0 -2018
  101. package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +0 -347
  102. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +0 -418
  103. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +0 -6754
  104. package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +0 -4449
  105. package/build/components/Deals/__tests__/__snapshots__/Deals.constants.js.snap +0 -15
  106. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +0 -7828
  107. package/build/components/Deals/helpers/__tests__/__mocks__/deal.json +0 -25
  108. package/build/components/Environment/__tests__/__snapshots__/Environment.State.test.js.snap +0 -120
  109. package/build/components/Environment/__tests__/__snapshots__/Environment.test.js.snap +0 -988
  110. package/build/components/Finder/__tests__/__snapshots__/Finder.constants.test.js.snap +0 -39
  111. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +0 -22237
  112. package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +0 -11
  113. package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +0 -11108
  114. package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +0 -44
  115. package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +0 -324
  116. package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +0 -1382
  117. package/build/components/Finder/helpers/__tests__/__snapshots__/getForwarderUrl.test.js.snap +0 -7
  118. package/build/components/Header/__tests__/__snapshots__/Header.test.js.snap +0 -1187
  119. package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +0 -19
  120. package/build/components/Rates/__tests__/__snapshots__/Rates.Content.test.js.snap +0 -41
  121. package/build/components/Rates/__tests__/__snapshots__/Rates.Footer.test.js.snap +0 -50
  122. package/build/components/Rates/__tests__/__snapshots__/Rates.Header.test.js.snap +0 -3
  123. package/build/components/Rates/__tests__/__snapshots__/Rates.RoomSelector.test.js.snap +0 -3
  124. package/build/components/Rates/__tests__/__snapshots__/Rates.Unavailability.test.js.snap +0 -53
  125. package/build/components/Rates/__tests__/__snapshots__/Rates.test.js.snap +0 -11760
  126. package/build/components/Rates/components/CardHotel/__tests__/__snapshots__/CardHotel.test.js.snap +0 -113
  127. package/build/components/Rates/components/Filters/__tests__/__snapshots__/FIlters.Button.test.js.snap +0 -32
  128. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.Amenity.test.js.snap +0 -21
  129. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.BookingOption.test.js.snap +0 -32
  130. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.test.js.snap +0 -167
  131. package/build/components/Rates/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -3
  132. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Preview.test.js.snap +0 -96
  133. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Rates.test.js.snap +0 -9
  134. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Summary.test.js.snap +0 -53
  135. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.test.js.snap +0 -154
  136. package/build/components/Rates/components/Item/components/Amenities/__tests__/__snapshots__/Amenities.test.js.snap +0 -3
  137. package/build/components/Rates/components/Item/components/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -3
  138. package/build/components/Rates/components/Item/components/Features/__tests__/__snapshots__/Features.test.js.snap +0 -40
  139. package/build/components/Rates/components/Item/components/ModalCancellationInfo/__tests__/__snapshots__/ModalCancellationInfo.test.js.snap +0 -35
  140. package/build/components/Rates/components/Item/components/ModalInfo/__tests__/__snapshots__/ModalInfo.test.js.snap +0 -72
  141. package/build/components/Rates/components/Item/components/ModalOfferInfo/__tests__/__snapshots__/ModalOfferInfo.test.js.snap +0 -49
  142. package/build/components/Rates/components/Item/components/ModalUrl/__tests__/__snapshots__/ModalUrl.test.js.snap +0 -50
  143. package/build/components/Rates/components/Item/components/Option/__tests__/__snapshots__/Option.test.js.snap +0 -18
  144. package/build/components/Rates/components/Item/components/PriceDetails/__tests__/__snapshots__/PriceDetails.test.js.snap +0 -23
  145. package/build/components/Rates/components/Item/components/RateDetails/__tests__/__snapshots__/RateDetails.test.js.snap +0 -3
  146. package/build/components/Rates/components/Item/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +0 -27
  147. package/build/components/Rates/components/Item/components/TooltipDates/__tests__/__snapshots__/TooltipDates.test.js.snap +0 -3
  148. package/build/components/Rates/components/ModalClubRate/__tests__/__snapshots__/ModalClubRate.test.js.snap +0 -257
  149. package/build/components/Rates/components/ModalExtras/__tests__/__snapshots__/ModalExtras.test.js.snap +0 -68
  150. package/build/components/Rates/components/ModalMapView/__tests__/__snapshots__/ModalMapView.test.js.snap +0 -78
  151. package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +0 -260
  152. package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +0 -1091
  153. package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +0 -208
  154. package/build/components/__shared__/BookingDetails/__tests__/__snapshots__/BookingDetails.test.js.snap +0 -2190
  155. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +0 -500
  156. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +0 -745
  157. package/build/components/__shared__/BookingTerms/__tests__/__snapshots__/BookingTerms.test.js.snap +0 -450
  158. package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +0 -115
  159. package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +0 -206
  160. package/build/components/__shared__/ButtonPayment/components/Form/__tests__/__snapshots__/Form.test.js.snap +0 -65
  161. package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +0 -68
  162. package/build/components/__shared__/ButtonPayment/components/FormCheckout/__tests__/__snapshots__/FormCheckout.test.js.snap +0 -356
  163. package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/__tests__/__snapshots__/getStyle.test.js.snap +0 -23
  164. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +0 -165
  165. package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +0 -161
  166. package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +0 -190
  167. package/build/components/__shared__/Card/__tests__/__snapshots__/Card.test.js.snap +0 -34
  168. package/build/components/__shared__/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -42
  169. package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +0 -1018
  170. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +0 -2243
  171. package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +0 -373
  172. package/build/components/__shared__/Footer/__tests__/__snapshots__/Footer.test.js.snap +0 -178
  173. package/build/components/__shared__/NotificationRequiredFields/__tests__/__snapshots__/NotificationRequiredFields.test.js.snap +0 -118
  174. package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +0 -17
  175. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +0 -3754
  176. package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +0 -1109
  177. package/build/components/__shared__/Payment/components/AmazonPay/__tests__/__snapshots__/AmazonPay.test.js.snap +0 -23
  178. package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +0 -33
  179. package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +0 -933
  180. package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +0 -474
  181. package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +0 -98
  182. package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.Line.test.js.snap +0 -49
  183. package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.test.js.snap +0 -337
  184. package/build/components/__shared__/SelectEnvironment/__tests__/__snapshots__/SelectEnvironment.test.js.snap +0 -1192
  185. package/build/components/__shared__/Skeleton/__tests__/__snapshots__/Skeleton.test.js.snap +0 -66
  186. package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +0 -41
  187. package/build/components/helpers/__tests__/__mocks__/hotels.json +0 -87
  188. package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +0 -317
  189. package/playwright.config.js +0 -50
  190. package/public/App.Container.jsx +0 -147
  191. package/public/App.jsx +0 -34
  192. package/public/App.module.css +0 -153
  193. package/public/index.html +0 -32
  194. package/public/index.template.html +0 -19
  195. package/public/performance/index.html +0 -159
  196. package/public/routes/Deals.jsx +0 -20
  197. package/public/routes/Finder.jsx +0 -19
  198. package/public/routes/Home.constants.js +0 -52
  199. package/public/routes/Home.jsx +0 -131
  200. package/public/routes/NotFound.jsx +0 -23
  201. package/public/routes/Profile.jsx +0 -21
  202. package/public/routes/Signup.jsx +0 -20
  203. package/public/routes/Step0-Accommodations.jsx +0 -4
  204. package/public/routes/Step1-Rates.jsx +0 -12
  205. package/public/routes/Step2-Checkout.jsx +0 -4
  206. package/public/routes/Step3-Booking.jsx +0 -4
  207. package/public/routes/components/Logo.jsx +0 -18
  208. package/public/routes/components/index.js +0 -1
  209. package/public/routes/index.js +0 -10
  210. package/public/routes/routes.module.css +0 -259
  211. package/public/themes/monalisa.theme.css +0 -45
@@ -1,14 +0,0 @@
1
- import { getWeekNumber } from '../../helpers';
2
-
3
- export const calendar = async ({ isMobile, page }) => {
4
- const today = new Date();
5
- const year = today.getFullYear();
6
- const week = getWeekNumber(new Date()) + 1;
7
-
8
- if (isMobile) await page.getByTestId('deals-calendar-field').click();
9
- await page.getByTestId(`deals-calendar-${year}-${week}-4`).click();
10
- await page.getByTestId(`deals-calendar-${year}-${week}-6`).click();
11
-
12
- if (isMobile) await page.getByTestId('deals-calendar-field-modal-button-close').click();
13
- else await page.getByTestId(`deals-calendar-${year}-${week}-6`).click();
14
- };
@@ -1,7 +0,0 @@
1
- import { expect } from '@playwright/test';
2
-
3
- export const clear = async ({ page }) => {
4
- await page.getByTestId(`deals-button-clear`).click();
5
- await expect(await page.locator('[data-testid="deals-promocode-input"]')).toHaveValue('');
6
- await expect(await page.getAttribute('[data-testid="deals-button"]', 'disabled')).toBe('true');
7
- };
@@ -1,5 +0,0 @@
1
- export * from './calendar.workflow';
2
- export * from './clear.workflow';
3
- export * from './occupation.workflow';
4
- export * from './promocode.workflow';
5
- export * from './submit.workflow';
@@ -1,6 +0,0 @@
1
- export const occupation = async ({ isMobile, page }) => {
2
- await page.getByTestId('deals-occupation-field').click();
3
- await page.getByTestId('group-0-button-max').click();
4
-
5
- if (isMobile) await page.getByTestId('deals-occupation-field-modal-button-close').click();
6
- };
@@ -1,3 +0,0 @@
1
- export const promocode = async ({ page }) => {
2
- await page.getByTestId('deals-promocode-input').fill('test');
3
- };
@@ -1,6 +0,0 @@
1
- import { expect } from '@playwright/test';
2
-
3
- export const submit = async ({ page }) => {
4
- await page.getByTestId(`deals-button`).click();
5
- await expect(page).toHaveURL(/.*step1-rates/, { timeout: 10000 });
6
- };
@@ -1,10 +0,0 @@
1
- import { getWeekNumber } from '../../helpers';
2
-
3
- export const calendar = async ({ page, testId }) => {
4
- const year = new Date().getFullYear();
5
- const week = getWeekNumber(new Date()) + 1;
6
-
7
- await page.getByTestId(`${testId}-calendar-field`).click();
8
- await page.getByTestId(`${testId}-calendar-${year}-${week}-0`).click();
9
- await page.getByTestId(`${testId}-calendar-${year}-${week}-5`).click();
10
- };
@@ -1,3 +0,0 @@
1
- export * from './calendar.workflow';
2
- export * from './occupation.workflow';
3
- export * from './promocode.workflow';
@@ -1,27 +0,0 @@
1
- export const occupation = async ({
2
- addAdult,
3
- addAgeChild = true,
4
- addChild,
5
- addRoom,
6
- isMobile,
7
- page,
8
- search,
9
- testId,
10
- }) => {
11
- await page.getByTestId(`${testId}-occupation-field`).click();
12
- if (addAdult) {
13
- await page.getByTestId('group-0-button-max').click();
14
- }
15
- if (addRoom) {
16
- await page.getByTestId(`${testId}-occupation-add-room`).click();
17
- }
18
- if (addChild) {
19
- await page.getByTestId('group-1-button-max').click();
20
- addAgeChild && (await page.getByTestId('group-1-select-0').selectOption('1'));
21
- }
22
- if (search) {
23
- await page.getByTestId(`${testId}-occupation-submit`).click();
24
- } else if (isMobile) {
25
- await page.getByTestId(`${testId}-occupation-field-modal-button-close`).click();
26
- }
27
- };
@@ -1,8 +0,0 @@
1
- export const promocode = async ({ isMobile, page, testId }) => {
2
- await page.getByTestId(`${testId}-promocode`).click();
3
- await page.getByTestId('finder-promocode-input').fill('test');
4
-
5
- if (isMobile) {
6
- await page.getByTestId(`${testId}-promocode-modal-button-close`).click();
7
- }
8
- };
@@ -1,138 +0,0 @@
1
- {
2
- "status": "OK",
3
- "message": "",
4
- "data": {
5
- "extras": [
6
- {
7
- "id": 64954,
8
- "title": "Por tramo de personas / una vez",
9
- "included": false,
10
- "conditions": "Nulla at condimentum libero. Nullam eget tempor nisi, eget convallis sem. Duis in neque in massa rutrum vehicula. Curabitur a rutrum ante.",
11
- "accommodationThreshold": 0,
12
- "guestThreshold": 0,
13
- "nights": 5,
14
- "image": "https://images.mirai.com/EXTRAS%2FSHARED%2Fbeach%2Fniza_8_1480593296621.jpg",
15
- "text": "Pellentesque convallis accumsan nunc. Sed accumsan interdum augue, a vestibulum quam consectetur eu. Vestibulum elementum convallis auctor. Nullam cursus pellentesque magna a euismod. In dignissim urna eu mi egestas, nec fringilla tortor fringilla",
16
- "inputNights": false,
17
- "inputGuests": true,
18
- "frequency": 0,
19
- "guestType": 1,
20
- "type": 2,
21
- "amount": 2,
22
- "taxes": "Taxes included",
23
- "value": {
24
- "1": {
25
- "1": {
26
- "basePrice": 10.0,
27
- "price": 11.0,
28
- "taxes": 1.0
29
- },
30
- "2": {
31
- "basePrice": 10.0,
32
- "price": 11.0,
33
- "taxes": 1.0
34
- },
35
- "3": {
36
- "basePrice": 10.0,
37
- "price": 11.0,
38
- "taxes": 1.0
39
- },
40
- "4": {
41
- "basePrice": 10.0,
42
- "price": 11.0,
43
- "taxes": 1.0
44
- },
45
- "5": {
46
- "basePrice": 10.0,
47
- "price": 11.0,
48
- "taxes": 1.0
49
- }
50
- },
51
- "2": {
52
- "1": {
53
- "basePrice": 20.0,
54
- "price": 22.0,
55
- "taxes": 2.0
56
- },
57
- "2": {
58
- "basePrice": 20.0,
59
- "price": 22.0,
60
- "taxes": 2.0
61
- },
62
- "3": {
63
- "basePrice": 20.0,
64
- "price": 22.0,
65
- "taxes": 2.0
66
- },
67
- "4": {
68
- "basePrice": 20.0,
69
- "price": 22.0,
70
- "taxes": 2.0
71
- },
72
- "5": {
73
- "basePrice": 20.0,
74
- "price": 22.0,
75
- "taxes": 2.0
76
- }
77
- }
78
- },
79
- "baseValue": {
80
- "1": {
81
- "1": {
82
- "basePrice": 10.0,
83
- "price": 11.0,
84
- "taxes": 1.0
85
- },
86
- "2": {
87
- "basePrice": 10.0,
88
- "price": 11.0,
89
- "taxes": 1.0
90
- },
91
- "3": {
92
- "basePrice": 10.0,
93
- "price": 11.0,
94
- "taxes": 1.0
95
- },
96
- "4": {
97
- "basePrice": 10.0,
98
- "price": 11.0,
99
- "taxes": 1.0
100
- },
101
- "5": {
102
- "basePrice": 10.0,
103
- "price": 11.0,
104
- "taxes": 1.0
105
- }
106
- },
107
- "2": {
108
- "1": {
109
- "basePrice": 20.0,
110
- "price": 22.0,
111
- "taxes": 2.0
112
- },
113
- "2": {
114
- "basePrice": 20.0,
115
- "price": 22.0,
116
- "taxes": 2.0
117
- },
118
- "3": {
119
- "basePrice": 20.0,
120
- "price": 22.0,
121
- "taxes": 2.0
122
- },
123
- "4": {
124
- "basePrice": 20.0,
125
- "price": 22.0,
126
- "taxes": 2.0
127
- },
128
- "5": {
129
- "basePrice": 20.0,
130
- "price": 22.0,
131
- "taxes": 2.0
132
- }
133
- }
134
- }
135
- }
136
- ]
137
- }
138
- }
@@ -1,397 +0,0 @@
1
- {
2
- "status": "OK",
3
- "message": "",
4
- "data": {
5
- "extras": [
6
- {
7
- "id": 64954,
8
- "title": "Por tramo de personas / una vez",
9
- "included": false,
10
- "conditions": "Nulla at condimentum libero. Nullam eget tempor nisi, eget convallis sem. Duis in neque in massa rutrum vehicula. Curabitur a rutrum ante.",
11
- "accommodationThreshold": 0,
12
- "guestThreshold": 0,
13
- "nights": 5,
14
- "image": "https://images.mirai.com/EXTRAS%2FSHARED%2Fbeach%2Fniza_8_1480593296621.jpg",
15
- "text": "Pellentesque convallis accumsan nunc. Sed accumsan interdum augue, a vestibulum quam consectetur eu. Vestibulum elementum convallis auctor. Nullam cursus pellentesque magna a euismod. In dignissim urna eu mi egestas, nec fringilla tortor fringilla",
16
- "inputNights": false,
17
- "inputGuests": true,
18
- "frequency": 0,
19
- "guestType": 1,
20
- "type": 2,
21
- "amount": 2,
22
- "taxes": "Taxes included",
23
- "value": {
24
- "1": {
25
- "1": {
26
- "basePrice": 10.0,
27
- "price": 11.0,
28
- "taxes": 1.0
29
- },
30
- "2": {
31
- "basePrice": 10.0,
32
- "price": 11.0,
33
- "taxes": 1.0
34
- },
35
- "3": {
36
- "basePrice": 10.0,
37
- "price": 11.0,
38
- "taxes": 1.0
39
- },
40
- "4": {
41
- "basePrice": 10.0,
42
- "price": 11.0,
43
- "taxes": 1.0
44
- },
45
- "5": {
46
- "basePrice": 10.0,
47
- "price": 11.0,
48
- "taxes": 1.0
49
- }
50
- },
51
- "2": {
52
- "1": {
53
- "basePrice": 20.0,
54
- "price": 22.0,
55
- "taxes": 2.0
56
- },
57
- "2": {
58
- "basePrice": 20.0,
59
- "price": 22.0,
60
- "taxes": 2.0
61
- },
62
- "3": {
63
- "basePrice": 20.0,
64
- "price": 22.0,
65
- "taxes": 2.0
66
- },
67
- "4": {
68
- "basePrice": 20.0,
69
- "price": 22.0,
70
- "taxes": 2.0
71
- },
72
- "5": {
73
- "basePrice": 20.0,
74
- "price": 22.0,
75
- "taxes": 2.0
76
- }
77
- }
78
- },
79
- "baseValue": {
80
- "1": {
81
- "1": {
82
- "basePrice": 10.0,
83
- "price": 11.0,
84
- "taxes": 1.0
85
- },
86
- "2": {
87
- "basePrice": 10.0,
88
- "price": 11.0,
89
- "taxes": 1.0
90
- },
91
- "3": {
92
- "basePrice": 10.0,
93
- "price": 11.0,
94
- "taxes": 1.0
95
- },
96
- "4": {
97
- "basePrice": 10.0,
98
- "price": 11.0,
99
- "taxes": 1.0
100
- },
101
- "5": {
102
- "basePrice": 10.0,
103
- "price": 11.0,
104
- "taxes": 1.0
105
- }
106
- },
107
- "2": {
108
- "1": {
109
- "basePrice": 20.0,
110
- "price": 22.0,
111
- "taxes": 2.0
112
- },
113
- "2": {
114
- "basePrice": 20.0,
115
- "price": 22.0,
116
- "taxes": 2.0
117
- },
118
- "3": {
119
- "basePrice": 20.0,
120
- "price": 22.0,
121
- "taxes": 2.0
122
- },
123
- "4": {
124
- "basePrice": 20.0,
125
- "price": 22.0,
126
- "taxes": 2.0
127
- },
128
- "5": {
129
- "basePrice": 20.0,
130
- "price": 22.0,
131
- "taxes": 2.0
132
- }
133
- }
134
- }
135
- },
136
- {
137
- "id": 69632,
138
- "title": "only adults, choose adults",
139
- "included": false,
140
- "conditions": "Sólo si falta alguna condición o restricción que quieres que quede por escrito (este texto irá en las confirmaciones de reservas).",
141
- "accommodationThreshold": 0,
142
- "guestThreshold": 0,
143
- "nights": 5,
144
- "image": "https://images.mirai.com/EXTRAS%2FSHARED%2Fbilbao%2F7986957_s_1480593294671.jpg",
145
- "text": "Lo que pongas aquí no aparecerá en la confirmación escrita así que no pongas detalles o condiciones importantes.",
146
- "inputNights": false,
147
- "inputGuests": true,
148
- "frequency": 0,
149
- "guestType": 2,
150
- "type": 1,
151
- "amount": 2,
152
- "taxes": "Taxes included",
153
- "value": {
154
- "1": {
155
- "1": {
156
- "basePrice": 20.0,
157
- "price": 22.0,
158
- "taxes": 2.0
159
- },
160
- "2": {
161
- "basePrice": 20.0,
162
- "price": 22.0,
163
- "taxes": 2.0
164
- },
165
- "3": {
166
- "basePrice": 20.0,
167
- "price": 22.0,
168
- "taxes": 2.0
169
- },
170
- "4": {
171
- "basePrice": 20.0,
172
- "price": 22.0,
173
- "taxes": 2.0
174
- },
175
- "5": {
176
- "basePrice": 20.0,
177
- "price": 22.0,
178
- "taxes": 2.0
179
- }
180
- },
181
- "2": {
182
- "1": {
183
- "basePrice": 40.0,
184
- "price": 44.0,
185
- "taxes": 4.0
186
- },
187
- "2": {
188
- "basePrice": 40.0,
189
- "price": 44.0,
190
- "taxes": 4.0
191
- },
192
- "3": {
193
- "basePrice": 40.0,
194
- "price": 44.0,
195
- "taxes": 4.0
196
- },
197
- "4": {
198
- "basePrice": 40.0,
199
- "price": 44.0,
200
- "taxes": 4.0
201
- },
202
- "5": {
203
- "basePrice": 40.0,
204
- "price": 44.0,
205
- "taxes": 4.0
206
- }
207
- }
208
- },
209
- "baseValue": {
210
- "1": {
211
- "1": {
212
- "basePrice": 20.0,
213
- "price": 22.0,
214
- "taxes": 2.0
215
- },
216
- "2": {
217
- "basePrice": 20.0,
218
- "price": 22.0,
219
- "taxes": 2.0
220
- },
221
- "3": {
222
- "basePrice": 20.0,
223
- "price": 22.0,
224
- "taxes": 2.0
225
- },
226
- "4": {
227
- "basePrice": 20.0,
228
- "price": 22.0,
229
- "taxes": 2.0
230
- },
231
- "5": {
232
- "basePrice": 20.0,
233
- "price": 22.0,
234
- "taxes": 2.0
235
- }
236
- },
237
- "2": {
238
- "1": {
239
- "basePrice": 40.0,
240
- "price": 44.0,
241
- "taxes": 4.0
242
- },
243
- "2": {
244
- "basePrice": 40.0,
245
- "price": 44.0,
246
- "taxes": 4.0
247
- },
248
- "3": {
249
- "basePrice": 40.0,
250
- "price": 44.0,
251
- "taxes": 4.0
252
- },
253
- "4": {
254
- "basePrice": 40.0,
255
- "price": 44.0,
256
- "taxes": 4.0
257
- },
258
- "5": {
259
- "basePrice": 40.0,
260
- "price": 44.0,
261
- "taxes": 4.0
262
- }
263
- }
264
- }
265
- },
266
- {
267
- "id": 69633,
268
- "title": "only adults",
269
- "included": false,
270
- "accommodationThreshold": 0,
271
- "guestThreshold": 0,
272
- "nights": 5,
273
- "image": "https://images.mirai.com/EXTRAS%2FSHARED%2Fbilbao%2F21659247_s_1480593294733.jpg",
274
- "text": "Lo que pongas aquí no aparecerá en la confirmación escrita así que no pongas detalles o condiciones importantes.",
275
- "inputNights": false,
276
- "inputGuests": false,
277
- "frequency": 0,
278
- "guestType": 2,
279
- "type": 1,
280
- "amount": 2,
281
- "taxes": "Taxes included",
282
- "value": {
283
- "1": {
284
- "1": {
285
- "basePrice": 20.0,
286
- "price": 22.0,
287
- "taxes": 2.0
288
- },
289
- "2": {
290
- "basePrice": 20.0,
291
- "price": 22.0,
292
- "taxes": 2.0
293
- },
294
- "3": {
295
- "basePrice": 20.0,
296
- "price": 22.0,
297
- "taxes": 2.0
298
- },
299
- "4": {
300
- "basePrice": 20.0,
301
- "price": 22.0,
302
- "taxes": 2.0
303
- },
304
- "5": {
305
- "basePrice": 20.0,
306
- "price": 22.0,
307
- "taxes": 2.0
308
- }
309
- },
310
- "2": {
311
- "1": {
312
- "basePrice": 40.0,
313
- "price": 44.0,
314
- "taxes": 4.0
315
- },
316
- "2": {
317
- "basePrice": 40.0,
318
- "price": 44.0,
319
- "taxes": 4.0
320
- },
321
- "3": {
322
- "basePrice": 40.0,
323
- "price": 44.0,
324
- "taxes": 4.0
325
- },
326
- "4": {
327
- "basePrice": 40.0,
328
- "price": 44.0,
329
- "taxes": 4.0
330
- },
331
- "5": {
332
- "basePrice": 40.0,
333
- "price": 44.0,
334
- "taxes": 4.0
335
- }
336
- }
337
- },
338
- "baseValue": {
339
- "1": {
340
- "1": {
341
- "basePrice": 20.0,
342
- "price": 22.0,
343
- "taxes": 2.0
344
- },
345
- "2": {
346
- "basePrice": 20.0,
347
- "price": 22.0,
348
- "taxes": 2.0
349
- },
350
- "3": {
351
- "basePrice": 20.0,
352
- "price": 22.0,
353
- "taxes": 2.0
354
- },
355
- "4": {
356
- "basePrice": 20.0,
357
- "price": 22.0,
358
- "taxes": 2.0
359
- },
360
- "5": {
361
- "basePrice": 20.0,
362
- "price": 22.0,
363
- "taxes": 2.0
364
- }
365
- },
366
- "2": {
367
- "1": {
368
- "basePrice": 40.0,
369
- "price": 44.0,
370
- "taxes": 4.0
371
- },
372
- "2": {
373
- "basePrice": 40.0,
374
- "price": 44.0,
375
- "taxes": 4.0
376
- },
377
- "3": {
378
- "basePrice": 40.0,
379
- "price": 44.0,
380
- "taxes": 4.0
381
- },
382
- "4": {
383
- "basePrice": 40.0,
384
- "price": 44.0,
385
- "taxes": 4.0
386
- },
387
- "5": {
388
- "basePrice": 40.0,
389
- "price": 44.0,
390
- "taxes": 4.0
391
- }
392
- }
393
- }
394
- }
395
- ]
396
- }
397
- }