UNPKG

qe-fe-automation

Version:
39 lines (36 loc) 1.41 kB
import { User_Type } from '@support-onboard/index'; import { HelpCenter } from '@helpcenter-lib/helpcenter'; import { ChatBox, ChatApiIntercept, ChatBooking, TravelType, Banner } from '@chat-lib/index'; import { Hotels } from '@hotel-lib/search'; import { LocationUtility } from '@utility-lib/location'; describe('Chat: unsupported flow', () => { it.skip( 'C7839388: user should not be able to add breakfast and chat should connect with agent', { tags: ['@tier2'] }, () => { const daysToMove = { daysToMove: 2, daysAfterMovedDays: 1 }; ChatApiIntercept.interceptChatApis(); Hotels.prepareCompanyAndUserCreation(User_Type.ADMIN); HelpCenter.visitPage(); ChatBox.openChatWithAva(); ChatBox.selectBookTravelFlow(TravelType.HOTEL); ChatBooking.bookHotel(LocationUtility.getCityUS(), daysToMove); ChatBooking.checkIsChatMinimized(); ChatBox.openChat(); ChatBox.closeChat(); ChatBox.confirmCloseChat(); ChatBox.startNewChatWithAva(); ChatBox.selectMsgYouWannaSendBackToAva('No, something else'); ChatBox.selectMsgYouWannaSendBackToAva('Upcoming trips'); ChatBox.selectMsgYouWannaSendBackToAva('Something else'); ChatBox.typeMsgToAva('I would like to add breakfast for my upcoming hotel booking'); Banner.expectBannerContainsText('An agent will be with you shortly.'); } ); });