UNPKG

qe-fe-automation

Version:
22 lines (20 loc) 955 B
import { HotelCheckout, Hotels, HotelSearchResults } from '@hotel-lib/index'; import { User_Type } from '@support-onboard/index'; import { LocationUtility } from '@utility-lib/index'; describe('Hotel: Map interaction', () => { it('C151444: should be able to select hotel using map', { tags: ['@tier1'] }, () => { Hotels.prepareCompanyAndUserCreation(User_Type.ADMIN); Hotels.visitHotelSearch(); Hotels.setCheckInCheckOutDate(); Hotels.selectHotelLocation(LocationUtility.getCityUS()); Hotels.searchHotel(); HotelSearchResults.waitForHotelResultPageToBeLoaded(); HotelSearchResults.excludeProvidersFromRoomsList(['EXPEDIA']); HotelSearchResults.chooseHotelFromMap(); HotelSearchResults.selectRoomOption(); //HotelCheckout.waitToBeLoaded(); HotelCheckout.checkForHotelCheckoutHeading(); HotelCheckout.checkoutFLow('Business'); HotelCheckout.expectHotelBookedSuccessfully('Hotel confirmed!'); }); });