qe-fe-automation
Version:
FE test automation framework using cypress
36 lines (34 loc) • 1.27 kB
text/typescript
import {
Hotels,
HotelCheckout,
HotelSearchResults,
HotelItinerary
} from '@hotel-lib/index';
import { User_Type } from '@support-onboard/index';
import { LocationUtility } from '@utility-lib/index';
import { ReSearchUtility } from '../../modal';
describe('Hotel: deposit required booking', () => {
it.skip(
'C49930: Verify user is able to book Book Deposit required hotel',
{ tags: ['@tier1'] },
() => {
Hotels.prepareCompanyAndUserCreation(User_Type.ADMIN);
Hotels.visitHotelSearch();
Hotels.setCheckInCheckOutDate();
Hotels.selectHotelLocation(LocationUtility.getDepositRequiredHotels());
Hotels.searchHotel();
HotelSearchResults.selectHotel(0);
HotelSearchResults.getDepositRequiredRoom(ReSearchUtility.initHotelParams());
HotelCheckout.waitToBeLoaded();
HotelCheckout.setTripInfo();
HotelCheckout.hotelCancellationAndChargePolicy();
HotelCheckout.acceptHotelBookingPolicy();
HotelCheckout.setPhoneNumber();
HotelCheckout.checkIfProofOfVaccineRequired();
HotelCheckout.acceptAcknowledgement();
HotelCheckout.bookNow();
HotelCheckout.expectHotelBookedSuccessfully('Hotel confirmed!');
HotelItinerary.verifyHotelItineraryPage();
}
);
});