UNPKG

qe-fe-automation

Version:
20 lines (18 loc) 869 B
import { User_Type } from '@support-onboard/data_model/user_type'; import { HelpCenter } from '@helpcenter-lib/helpcenter'; import { ChatApiIntercept, ChatBooking, ChatBox, TravelType } from '@chat-lib/index'; import { Hotels } from '@hotel-lib/search'; import { LocationUtility } from '@utility-lib/location'; describe('Chat: Hotel booking', () => { it.skip('C7037567: Use chat to book hotel', { tags: ['@tier2'] }, () => { const daysToMove = { daysToMove: 8, daysAfterMovedDays: 2 }; ChatApiIntercept.interceptChatApis(); Hotels.prepareCompanyAndUserCreation(User_Type.ADMIN); HelpCenter.visitPage(); ChatBox.openChatWithAva(); ChatBox.selectBookTravelFlow(TravelType.HOTEL); ChatBooking.clickAddFiledButton('Dates'); ChatBooking.bookHotel(LocationUtility.getCityUS(), daysToMove); ChatBooking.checkIsChatMinimized(); }); });