๐Ÿงช Original HotelBookingCalendar Test

Testing the fixed HotelBookingCalendar component with proper room type resolution

๐Ÿ”ง Issue Fixed: Room type names should now display correctly:
  • Before: All rooms showed "Deluxe Suite"
  • After: Each room shows its actual type (Standard, Superior, Deluxe, Executive)
For Multi Reservations

โœ… Expected Room Types

Standard Room

Rooms: 763, 764
Price: 800 EGP/night

Superior Room

Rooms: 765, 766
Price: 1000 EGP/night

Deluxe Suite

Rooms: 767, 768
Price: 1400 EGP/night

Executive Suite

Room: 769
Price: 1200 EGP/night

๐Ÿ› ๏ธ Technical Fix Applied

  • Added getRoomTypeNameFromRoom(room) function for room objects
  • Updated all getRoomTypeName(room) calls to use the new function
  • Proper room type resolution hierarchy: room.room_type.name โ†’ room.roomType.name โ†’ etc.
  • Added debug logging to track room type resolution