UNPKG

qe-fe-automation

Version:
34 lines (31 loc) 1.4 kB
import { User_Type } from '@support-onboard/index'; import { HelpCenter } from '@helpcenter-lib/helpcenter'; import { ChatBox, ChatApiIntercept, ChatBooking, TravelType } from '@chat-lib/index'; import { LocationUtility } from '@utility-lib/location'; import { Hotels } from '@hotel-lib/search'; describe('Chat: change hotel', () => { it.skip('C7838650: user should be able to change hotel', { tags: ['@tier2'] }, () => { const daysToMove = { daysToMove: 6, daysAfterMovedDays: 1 }; const location = 'Trump International Hotel Las Vegas, 2000 Fashion Show Dr, Las Vegas, NV 89109, USA'; const location2 = LocationUtility.getCityUS(); ChatApiIntercept.interceptChatApis(); Hotels.prepareCompanyAndUserCreation(User_Type.ADMIN); HelpCenter.visitPage(); ChatBox.openChatWithAva(); ChatBox.selectBookTravelFlow(TravelType.HOTEL); ChatBooking.bookHotel(location, daysToMove); ChatBooking.checkIsChatMinimized(); ChatBox.openChat(); ChatBox.closeChat(); ChatBox.confirmCloseChat(); ChatBox.startNewChatWithAva(); ChatBox.closeChat(); ChatBox.confirmCloseChat(); ChatBox.startNewChatWithAva(); ChatBox.selectMsgYouWannaSendBackToAva('Yes'); ChatBox.selectMsgYouWannaSendBackToAva('Change'); ChatBox.selectMsgYouWannaSendBackToAva('Make a second booking'); ChatBooking.changeHotelBookingFlow(location2); }); });