@mirai/core 0.4.36 → 0.4.37
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/package.json +1 -1
- package/.env +0 -22
- package/.gitlab-ci.yml +0 -4
- package/.nvmrc +0 -1
- package/__tests__/Booking/__mocks__/booking-delete.json +0 -1
- package/__tests__/Booking/__mocks__/booking-get.json +0 -105
- package/__tests__/Booking/booking.constants.js +0 -8
- package/__tests__/Booking/workflows/cancel.workflow.js +0 -20
- package/__tests__/Booking/workflows/index.js +0 -5
- package/__tests__/Booking/workflows/openMobileMenu.workflow.js +0 -4
- package/__tests__/Booking/workflows/print.workflow.js +0 -13
- package/__tests__/Booking/workflows/resend.workflow.js +0 -18
- package/__tests__/Booking/workflows/review.workflow.js +0 -17
- package/__tests__/BookingQuery/__mocks__/user-booking-get.json +0 -9
- package/__tests__/BookingQuery/workflows/index.js +0 -1
- package/__tests__/BookingQuery/workflows/login.workflow.js +0 -22
- package/__tests__/Checkout/__mocks__/checkout-get.json +0 -935
- package/__tests__/Checkout/__mocks__/checkout-post-PAYLATER.json +0 -10
- package/__tests__/Checkout/__mocks__/checkout-post-TPV.json +0 -7
- package/__tests__/Checkout/__mocks__/checkout-post-TRANSFER.json +0 -10
- package/__tests__/Checkout/checkout.constants.js +0 -8
- package/__tests__/Checkout/workflows/form.workflow.js +0 -17
- package/__tests__/Checkout/workflows/index.js +0 -4
- package/__tests__/Checkout/workflows/payment.workflow.js +0 -10
- package/__tests__/Checkout/workflows/review.workflow.js +0 -19
- package/__tests__/Checkout/workflows/submit.workflow.js +0 -9
- package/__tests__/Deals/__mocks__/deals-success.json +0 -739
- package/__tests__/Deals/workflows/calendar.workflow.js +0 -14
- package/__tests__/Deals/workflows/clear.workflow.js +0 -7
- package/__tests__/Deals/workflows/index.js +0 -5
- package/__tests__/Deals/workflows/occupation.workflow.js +0 -6
- package/__tests__/Deals/workflows/promocode.workflow.js +0 -3
- package/__tests__/Deals/workflows/submit.workflow.js +0 -6
- package/__tests__/Finder/workflows/calendar.workflow.js +0 -10
- package/__tests__/Finder/workflows/index.js +0 -3
- package/__tests__/Finder/workflows/occupation.workflow.js +0 -27
- package/__tests__/Finder/workflows/promocode.workflow.js +0 -8
- package/__tests__/Rates/__mocks__/extras-one-success.json +0 -138
- package/__tests__/Rates/__mocks__/extras-success.json +0 -397
- package/__tests__/Rates/__mocks__/rates-success.json +0 -731
- package/__tests__/Rates/workflows/extras.js +0 -9
- package/__tests__/Rates/workflows/extrasExpect.js +0 -11
- package/__tests__/Rates/workflows/index.js +0 -4
- package/__tests__/Rates/workflows/multiroom.js +0 -26
- package/__tests__/Rates/workflows/rates.js +0 -9
- package/__tests__/Session/workflows/bookings.workflow.js +0 -18
- package/__tests__/Session/workflows/forgotPassword.workflow.js +0 -20
- package/__tests__/Session/workflows/index.js +0 -5
- package/__tests__/Session/workflows/login.workflow.js +0 -29
- package/__tests__/Session/workflows/logout.workflow.js +0 -8
- package/__tests__/Session/workflows/profile.workflow.js +0 -49
- package/__tests__/Signup/workflows/index.js +0 -2
- package/__tests__/Signup/workflows/signup.workflow.js +0 -26
- package/__tests__/Signup/workflows/signupError.workflow.js +0 -22
- package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-one-extras-1.png +0 -0
- package/__tests__/__screenshots__/rates.spec.jsx/Desktop/Search-multiroom-with-some-extras-1.png +0 -0
- package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-one-extras-1.png +0 -0
- package/__tests__/__screenshots__/rates.spec.jsx/iPhone-12/Search-multiroom-with-some-extras-1.png +0 -0
- package/__tests__/booking.spec.jsx +0 -34
- package/__tests__/bookingQuey.spec.js +0 -43
- package/__tests__/buttonFinder.spec.js +0 -16
- package/__tests__/checkout.spec.jsx +0 -52
- package/__tests__/constants.js +0 -20
- package/__tests__/deals.spec.js +0 -30
- package/__tests__/finder.spec.js +0 -75
- package/__tests__/helpers/closeNotification.js +0 -7
- package/__tests__/helpers/getWeekNumber.js +0 -8
- package/__tests__/helpers/index.js +0 -2
- package/__tests__/rates.spec.jsx +0 -39
- package/__tests__/session.spec.js +0 -32
- package/__tests__/signup.spec.js +0 -17
- package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.skeleton.test.js.snap +0 -287
- package/build/components/BannerLoyalty/__tests__/__snapshots__/BannerLoyalty.test.js.snap +0 -102
- package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +0 -1302
- package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +0 -139
- package/build/components/Booking/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -108
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormCancel.test.js.snap +0 -546
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormEdit.test.js.snap +0 -46
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormResend.test.js.snap +0 -166
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Information.test.js.snap +0 -110
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +0 -82
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +0 -432
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalAgency.test.js.snap +0 -319
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Payment.test.js.snap +0 -178
- package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +0 -1048
- package/build/components/ButtonFinder/__tests__/__snapshots__/ButtonFinder.test.js.snap +0 -8210
- package/build/components/Chat/__tests__/__snapshots__/Chat.constants.test.js.snap +0 -30
- package/build/components/Chat/__tests__/__snapshots__/Chat.test.js.snap +0 -634
- package/build/components/Chat/components/Avatar/__tests__/__snapshots__/Avatar.test.jsx.snap +0 -97
- package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +0 -178
- package/build/components/Chat/components/InputRich/__tests__/__snapshots__/InputRich.test.jsx.snap +0 -282
- package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +0 -211
- package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Booking.test.js.snap +0 -65
- package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Card.test.js.snap +0 -29
- package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Environment.test.js.snap +0 -44
- package/build/components/Chat/components/Offline/__tests__/__snapshots__/Offline.test.js.snap +0 -162
- package/build/components/Chat/helpers/__tests__/__snapshots__/getVerboseDate.test.js.snap +0 -9
- package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +0 -2018
- package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +0 -347
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +0 -418
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +0 -6754
- package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +0 -4449
- package/build/components/Deals/__tests__/__snapshots__/Deals.constants.js.snap +0 -15
- package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +0 -7828
- package/build/components/Deals/helpers/__tests__/__mocks__/deal.json +0 -25
- package/build/components/Environment/__tests__/__snapshots__/Environment.State.test.js.snap +0 -120
- package/build/components/Environment/__tests__/__snapshots__/Environment.test.js.snap +0 -988
- package/build/components/Finder/__tests__/__snapshots__/Finder.constants.test.js.snap +0 -39
- package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +0 -22237
- package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +0 -11
- package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +0 -11108
- package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +0 -44
- package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +0 -324
- package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +0 -1382
- package/build/components/Finder/helpers/__tests__/__snapshots__/getForwarderUrl.test.js.snap +0 -7
- package/build/components/Header/__tests__/__snapshots__/Header.test.js.snap +0 -1187
- package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +0 -19
- package/build/components/Rates/__tests__/__snapshots__/Rates.Content.test.js.snap +0 -41
- package/build/components/Rates/__tests__/__snapshots__/Rates.Footer.test.js.snap +0 -50
- package/build/components/Rates/__tests__/__snapshots__/Rates.Header.test.js.snap +0 -3
- package/build/components/Rates/__tests__/__snapshots__/Rates.RoomSelector.test.js.snap +0 -3
- package/build/components/Rates/__tests__/__snapshots__/Rates.Unavailability.test.js.snap +0 -53
- package/build/components/Rates/__tests__/__snapshots__/Rates.test.js.snap +0 -11760
- package/build/components/Rates/components/CardHotel/__tests__/__snapshots__/CardHotel.test.js.snap +0 -113
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/FIlters.Button.test.js.snap +0 -32
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.Amenity.test.js.snap +0 -21
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.BookingOption.test.js.snap +0 -32
- package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.test.js.snap +0 -167
- package/build/components/Rates/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +0 -3
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Preview.test.js.snap +0 -96
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Rates.test.js.snap +0 -9
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Summary.test.js.snap +0 -53
- package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.test.js.snap +0 -154
- package/build/components/Rates/components/Item/components/Amenities/__tests__/__snapshots__/Amenities.test.js.snap +0 -3
- package/build/components/Rates/components/Item/components/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -3
- package/build/components/Rates/components/Item/components/Features/__tests__/__snapshots__/Features.test.js.snap +0 -40
- package/build/components/Rates/components/Item/components/ModalCancellationInfo/__tests__/__snapshots__/ModalCancellationInfo.test.js.snap +0 -35
- package/build/components/Rates/components/Item/components/ModalInfo/__tests__/__snapshots__/ModalInfo.test.js.snap +0 -72
- package/build/components/Rates/components/Item/components/ModalOfferInfo/__tests__/__snapshots__/ModalOfferInfo.test.js.snap +0 -49
- package/build/components/Rates/components/Item/components/ModalUrl/__tests__/__snapshots__/ModalUrl.test.js.snap +0 -50
- package/build/components/Rates/components/Item/components/Option/__tests__/__snapshots__/Option.test.js.snap +0 -18
- package/build/components/Rates/components/Item/components/PriceDetails/__tests__/__snapshots__/PriceDetails.test.js.snap +0 -23
- package/build/components/Rates/components/Item/components/RateDetails/__tests__/__snapshots__/RateDetails.test.js.snap +0 -3
- package/build/components/Rates/components/Item/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +0 -27
- package/build/components/Rates/components/Item/components/TooltipDates/__tests__/__snapshots__/TooltipDates.test.js.snap +0 -3
- package/build/components/Rates/components/ModalClubRate/__tests__/__snapshots__/ModalClubRate.test.js.snap +0 -257
- package/build/components/Rates/components/ModalExtras/__tests__/__snapshots__/ModalExtras.test.js.snap +0 -68
- package/build/components/Rates/components/ModalMapView/__tests__/__snapshots__/ModalMapView.test.js.snap +0 -78
- package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +0 -260
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +0 -1091
- package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +0 -208
- package/build/components/__shared__/BookingDetails/__tests__/__snapshots__/BookingDetails.test.js.snap +0 -2190
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +0 -500
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +0 -745
- package/build/components/__shared__/BookingTerms/__tests__/__snapshots__/BookingTerms.test.js.snap +0 -450
- package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +0 -115
- package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +0 -206
- package/build/components/__shared__/ButtonPayment/components/Form/__tests__/__snapshots__/Form.test.js.snap +0 -65
- package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +0 -68
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/__tests__/__snapshots__/FormCheckout.test.js.snap +0 -356
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/__tests__/__snapshots__/getStyle.test.js.snap +0 -23
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +0 -165
- package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +0 -161
- package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +0 -190
- package/build/components/__shared__/Card/__tests__/__snapshots__/Card.test.js.snap +0 -34
- package/build/components/__shared__/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +0 -42
- package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +0 -1018
- package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +0 -2243
- package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +0 -373
- package/build/components/__shared__/Footer/__tests__/__snapshots__/Footer.test.js.snap +0 -178
- package/build/components/__shared__/NotificationRequiredFields/__tests__/__snapshots__/NotificationRequiredFields.test.js.snap +0 -118
- package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +0 -17
- package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +0 -3754
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +0 -1109
- package/build/components/__shared__/Payment/components/AmazonPay/__tests__/__snapshots__/AmazonPay.test.js.snap +0 -23
- package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +0 -33
- package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +0 -933
- package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +0 -474
- package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +0 -98
- package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.Line.test.js.snap +0 -49
- package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.test.js.snap +0 -337
- package/build/components/__shared__/SelectEnvironment/__tests__/__snapshots__/SelectEnvironment.test.js.snap +0 -1192
- package/build/components/__shared__/Skeleton/__tests__/__snapshots__/Skeleton.test.js.snap +0 -66
- package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +0 -41
- package/build/components/helpers/__tests__/__mocks__/hotels.json +0 -87
- package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +0 -317
- package/playwright.config.js +0 -50
- package/public/App.Container.jsx +0 -147
- package/public/App.jsx +0 -34
- package/public/App.module.css +0 -153
- package/public/index.html +0 -32
- package/public/index.template.html +0 -19
- package/public/performance/index.html +0 -159
- package/public/routes/Deals.jsx +0 -20
- package/public/routes/Finder.jsx +0 -19
- package/public/routes/Home.constants.js +0 -52
- package/public/routes/Home.jsx +0 -131
- package/public/routes/NotFound.jsx +0 -23
- package/public/routes/Profile.jsx +0 -21
- package/public/routes/Signup.jsx +0 -20
- package/public/routes/Step0-Accommodations.jsx +0 -4
- package/public/routes/Step1-Rates.jsx +0 -12
- package/public/routes/Step2-Checkout.jsx +0 -4
- package/public/routes/Step3-Booking.jsx +0 -4
- package/public/routes/components/Logo.jsx +0 -18
- package/public/routes/components/index.js +0 -1
- package/public/routes/index.js +0 -10
- package/public/routes/routes.module.css +0 -259
- package/public/themes/monalisa.theme.css +0 -45
package/package.json
CHANGED
package/.env
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
BUNDLE_DEV=https://static.mirai-int.io/core/index.js
|
|
2
|
-
BUNDLE_LOCALHOST=http://local.mirai.com:9090/dist/index.js?version=localhost
|
|
3
|
-
|
|
4
|
-
# API
|
|
5
|
-
SERVICE_BOOKING=https://reservation.mirai.com/XMAS/reservation
|
|
6
|
-
SERVICE_CLUB=https://api.mirai.com
|
|
7
|
-
SERVICE_CURRENCY=https://api.mirai.com/MiraiWebService
|
|
8
|
-
SERVICE_DICTIONARY=https://dictionary.mirai.com/api
|
|
9
|
-
SERVICE_DEALS=https://index-deal.mirai.com
|
|
10
|
-
SERVICE_ENGINE=https://engine.mirai.com
|
|
11
|
-
SERVICE_HOTEL=https://engine.mirai.com/HOTEL
|
|
12
|
-
SERVICE_HOTELVERSE=https://reservation.mirai.com/XMAS/hotelverse
|
|
13
|
-
SERVICE_LISA=http://localhost:3000
|
|
14
|
-
SERVICE_PRICING=https://index-price.mirai.com
|
|
15
|
-
SERVICE_STATIC=https://static.mirai.com
|
|
16
|
-
SERVICE_USER=https://api.mirai.com
|
|
17
|
-
|
|
18
|
-
# THIRD-PARTIES
|
|
19
|
-
GMAP_API=AIzaSyBFw0Qbyq9zTFTd-tUY6dZWTgaQzuU17R8
|
|
20
|
-
HOTELVERSE_CDN=https://hvcdnms.azureedge.net
|
|
21
|
-
METRICS=6aa2ce4cc2f2b9be6155a9f3f8fe4b75
|
|
22
|
-
_SENTRY=https://f9609a77377541938e41568184a8a25f@o4505475603103744.ingest.sentry.io/4505475604807680
|
package/.gitlab-ci.yml
DELETED
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v18.18.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "status": "UNKNOWN", "message": null, "data": null }
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"status": "OK",
|
|
3
|
-
"message": "",
|
|
4
|
-
"data": {
|
|
5
|
-
"id": 24080753785,
|
|
6
|
-
"pinCode": 3518230,
|
|
7
|
-
"state": 1,
|
|
8
|
-
"checkIn": "10/04/2025",
|
|
9
|
-
"checkOut": "15/04/2025",
|
|
10
|
-
"checkInTime": "12:00",
|
|
11
|
-
"checkOutTime": "17:00",
|
|
12
|
-
"currency": "EUR",
|
|
13
|
-
"contact": [{ "name": "Hal Finney" }, { "email": "hello@soyjavi.com" }, { "phone": "+1 8185551234" }],
|
|
14
|
-
"hotel": {
|
|
15
|
-
"address": "Mariano Pola, 13",
|
|
16
|
-
"city": "33212, Gijón, Asturias",
|
|
17
|
-
"country": "Spain",
|
|
18
|
-
"email": "info@mirai.com",
|
|
19
|
-
"location": [43.5402473, -5.6783805],
|
|
20
|
-
"name": "Hotel Monalisa Test ***",
|
|
21
|
-
"phone": "+34 915 91 35 00",
|
|
22
|
-
"site": "https://monalisa.mirai.com/"
|
|
23
|
-
},
|
|
24
|
-
"details": [
|
|
25
|
-
{
|
|
26
|
-
"amount": 1,
|
|
27
|
-
"image": "https://images.mirai.com/INFOROOMS/100379008/c26IDLXClcR4v3KTbRmK/c26IDLXClcR4v3KTbRmK_medium.jpg",
|
|
28
|
-
"observations": [],
|
|
29
|
-
"occupation": { "adults": 3, "children": 0, "babies": 1 },
|
|
30
|
-
"rate": "Pay now",
|
|
31
|
-
"type": "Suite",
|
|
32
|
-
"items": [
|
|
33
|
-
{ "date": "10/04/2025", "description": "", "price": 58.4, "summary": "Breakfast Included" },
|
|
34
|
-
{ "date": "11/04/2025", "description": "", "price": 58.4, "summary": "Breakfast Included" },
|
|
35
|
-
{ "date": "12/04/2025", "description": "", "price": 58.4, "summary": "Breakfast Included" },
|
|
36
|
-
{ "date": "13/04/2025", "description": "", "price": 58.4, "summary": "Breakfast Included" },
|
|
37
|
-
{ "date": "14/04/2025", "description": "", "price": 58.4, "summary": "Breakfast Included" }
|
|
38
|
-
],
|
|
39
|
-
"extras": []
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"extras": [
|
|
43
|
-
{
|
|
44
|
-
"amount": 2,
|
|
45
|
-
"description": "Sólo si falta alguna condición o restricción que quieres que quede por escrito (este texto irá en las confirmaciones de reservas).",
|
|
46
|
-
"id": 69632,
|
|
47
|
-
"price": 40.0,
|
|
48
|
-
"summary": "For 2 adults",
|
|
49
|
-
"title": "only adults, choose adults",
|
|
50
|
-
"type": "PERSON_ONCE"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"amount": 1,
|
|
54
|
-
"id": 65573,
|
|
55
|
-
"summary": "For 1 apartment",
|
|
56
|
-
"title": "free- Por habitación / una vez:",
|
|
57
|
-
"type": "ROOM_ONCE"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"amount": 1,
|
|
61
|
-
"description": "Proin ullamcorper fringilla dui, sit amet sagittis ante porttitor ac. Phasellus at porta tellus, at ultricies neque.",
|
|
62
|
-
"id": 65349,
|
|
63
|
-
"price": 100.0,
|
|
64
|
-
"summary": "",
|
|
65
|
-
"title": "Una unidad por reserva:",
|
|
66
|
-
"type": "RESERVE_ONCE"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"otherConditions": "This is a example of other conditions",
|
|
70
|
-
"paymentsConditions": "Prepayment required of 100%: Book now, provide your card details later. Possibility of providing the card details within 5 days.",
|
|
71
|
-
"price": {
|
|
72
|
-
"value": 565.2,
|
|
73
|
-
"base": 432.0,
|
|
74
|
-
"description": "+43.20 € VAT, +90.00 € Local taxes",
|
|
75
|
-
"prepayment": { "TPV": { "value": 475.2, "currency": "EUR" } }
|
|
76
|
-
},
|
|
77
|
-
"priceBreakdown": {
|
|
78
|
-
"basePrice": 432.0,
|
|
79
|
-
"taxes": [{ "amount": 10.0, "price": 43.2, "type": 0, "applyTo": [1, 2] }],
|
|
80
|
-
"fees": [{ "price": 90.0, "type": 1, "age": 16 }]
|
|
81
|
-
},
|
|
82
|
-
"cancelationPolicy": {
|
|
83
|
-
"summary": "Special conditions: Penalty if canceled",
|
|
84
|
-
"detail": "When the hotel receives your reservation, the total amount will be charged on your card. No refund will be made in case of cancellation, early departure or no-show (the reservation is kept up to the 1st night). If the charge to your card is denied, the hotel will cancel your reservation. "
|
|
85
|
-
},
|
|
86
|
-
"units": 1,
|
|
87
|
-
"payment": {
|
|
88
|
-
"config": {
|
|
89
|
-
"cards": ["AMERICAN_EXPRESS", "VISA", "MASTERCARD"],
|
|
90
|
-
"currencyDecimals": 2,
|
|
91
|
-
"provider": "REDUNIQ",
|
|
92
|
-
"publicKey": {},
|
|
93
|
-
"showCVV": true
|
|
94
|
-
},
|
|
95
|
-
"info": {
|
|
96
|
-
"amount": 475.2,
|
|
97
|
-
"amountRaw": 47520,
|
|
98
|
-
"cardValidation": false,
|
|
99
|
-
"time": { "value": 1723499999999, "now": 1722998010821, "deadlineExpired": false }
|
|
100
|
-
},
|
|
101
|
-
"methods": ["TPV"]
|
|
102
|
-
},
|
|
103
|
-
"postponable": false
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const PAGE_URL = 'http://local.mirai.com:8080/step3-booking';
|
|
2
|
-
|
|
3
|
-
const URL_PARAMS = {
|
|
4
|
-
DEFAULT:
|
|
5
|
-
'?code=49BBD2F87DBE604D1BBD734D12CB6F2C7682B94B&env=dev&home=http%3A%2F%2Flocal.mirai.com%3A8080%2F&idHotel=100379008&lang=en&reservationCode=24080695775&type=hotel&version=2&serverNameForSSL=reservation.mirai.com&outsideHotelDomain=true',
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export { PAGE_URL, URL_PARAMS };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { expect } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
import { openMobileMenu } from './openMobileMenu.workflow';
|
|
4
|
-
|
|
5
|
-
export const cancel = async ({ isMobile, page }) => {
|
|
6
|
-
if (isMobile) await openMobileMenu({ page });
|
|
7
|
-
await page.getByTestId('booking-menu-2').click();
|
|
8
|
-
|
|
9
|
-
await page.locator('input[type="radio"][name="cancel"][value="5"]').check();
|
|
10
|
-
await page.fill(
|
|
11
|
-
'input[name="comments"]',
|
|
12
|
-
'Due to unforeseen circumstances, I need to cancel my hotel reservation. Thank you for your understanding.',
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
const [response] = await Promise.all([
|
|
16
|
-
page.waitForResponse((response) => response.url().includes('/reservation') && !!response.status()),
|
|
17
|
-
await page.getByTestId('submit-button').click(),
|
|
18
|
-
]);
|
|
19
|
-
expect(response.status()).toBe(200);
|
|
20
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { openMobileMenu } from './openMobileMenu.workflow';
|
|
2
|
-
|
|
3
|
-
export const print = async ({ isMobile, page }) => {
|
|
4
|
-
if (isMobile) await openMobileMenu({ page });
|
|
5
|
-
|
|
6
|
-
page.on('dialog', async (dialog) => {
|
|
7
|
-
if (dialog.type() === 'print') {
|
|
8
|
-
await dialog.dismiss();
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
await page.getByTestId('booking-menu-0').click();
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { expect } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
import { openMobileMenu } from './openMobileMenu.workflow';
|
|
4
|
-
import { USER } from '../../constants';
|
|
5
|
-
|
|
6
|
-
export const resend = async ({ isMobile, page }) => {
|
|
7
|
-
if (isMobile) await openMobileMenu({ page });
|
|
8
|
-
|
|
9
|
-
await page.getByTestId('booking-menu-1').click();
|
|
10
|
-
await page.fill('input[name="email"]', USER.email);
|
|
11
|
-
|
|
12
|
-
const [response] = await Promise.all([
|
|
13
|
-
page.waitForResponse((response) => response.url().includes('/resend_reservation') && !!response.status()),
|
|
14
|
-
page.getByTestId('submit-button').click(),
|
|
15
|
-
]);
|
|
16
|
-
|
|
17
|
-
expect(response.status()).toBe(200);
|
|
18
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { expect } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
export const review = async ({ isMobile, page }) => {
|
|
4
|
-
// Expand more info
|
|
5
|
-
if (!isMobile) {
|
|
6
|
-
expect(await page.locator('text="Booking extras"').count()).toEqual(0);
|
|
7
|
-
await page.getByTestId('button-more').click();
|
|
8
|
-
}
|
|
9
|
-
await page.locator('text="Booking extras"').isVisible();
|
|
10
|
-
|
|
11
|
-
// Change language
|
|
12
|
-
const [responseError] = await Promise.all([
|
|
13
|
-
page.waitForResponse((response) => response.url().includes('/dictionary?locale=es-ES') && !!response.status()),
|
|
14
|
-
page.locator('select[name="locale"]').selectOption('Español'),
|
|
15
|
-
]);
|
|
16
|
-
expect(responseError.status()).toBe(200);
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './login.workflow';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { expect } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
export const login = async ({ id, page, pinCode, testId, wait = true } = {}) => {
|
|
4
|
-
await expect(page.locator('ui-form')).not.toBeVisible();
|
|
5
|
-
await page.getByTestId(`${testId}-button-open-modal`).click();
|
|
6
|
-
await expect(page.locator('ui-form')).toBeVisible();
|
|
7
|
-
await expect(page.getByTestId(`${testId}-button-cta`)).toHaveAttribute('disabled');
|
|
8
|
-
|
|
9
|
-
await page.getByTestId(`${testId}-input-id`).click();
|
|
10
|
-
await page.getByTestId(`${testId}-input-id`).fill(id);
|
|
11
|
-
await expect(page.getByTestId(`${testId}-button-cta`)).toHaveAttribute('disabled');
|
|
12
|
-
|
|
13
|
-
await page.getByTestId(`${testId}-input-pinCode`).click();
|
|
14
|
-
await page.getByTestId(`${testId}-input-pinCode`).fill(pinCode);
|
|
15
|
-
await expect(page.getByTestId(`${testId}-button-cta`)).toHaveAttribute('disabled');
|
|
16
|
-
|
|
17
|
-
await expect(page.getByTestId(`${testId}-notification-error`)).not.toBeVisible();
|
|
18
|
-
await page.getByTestId(`${testId}-button-cta`).click();
|
|
19
|
-
if (wait) {
|
|
20
|
-
await page.waitForResponse((response) => response.url().includes('login_reservation') && response.status() === 200);
|
|
21
|
-
}
|
|
22
|
-
};
|