TTP Flavor Test (Ecommerce / Hotels / …)

How it works:
Loading SDK...

Widget Configuration

Test Actions (Simulated Messages)

Show Rooms

Injects a show_items message with mock hotel rooms — no voice call needed.

Show Gallery

Injects a show_media message to test fullscreen gallery.

Booking Updated

Injects a booking_updated message to test the booking summary bar.

Console Commands

// Access the widget instance window.testWidget // Inject messages manually via the flavor's messageHandlers window.testWidget._flavor.messageHandlers['show_items']({ t: 'show_items', items: [ { roomId: 'room-1', roomName: 'Test Room', imageUrl: '...', pricePerNight: 150, currency: 'USD', beds: 2, amenities: ['WiFi', 'Pool'] } ], title: 'Test Rooms' }); window.testWidget._flavor.messageHandlers['show_media']({ t: 'show_media', images: [{ url: 'https://images.unsplash.com/photo-1631049307264-da0ec9d70304?w=800', caption: 'Standard Room' }], title: 'Hotel Photos' });