qe-fe-automation
Version:
FE test automation framework using cypress
31 lines (28 loc) • 1.05 kB
text/typescript
import { bookPersonalHotel, Passenger, HotelItinerary } from '@hotel-lib/index';
import { Hotels, adultAndChildPassengers } from '@hotel-lib/search';
import { User_Type } from '@support-onboard/index';
import { TripTileType } from '@utility-lib/index';
const tripType: TripTileType = 'Personal';
const adultAndTwoChildrenPassengers: Passenger[] = [
...adultAndChildPassengers,
{
age: 11,
gender: 'MALE',
childAccount: true
}
];
describe('Personal Travel: Hotel - Multiple guest', () => {
it(
'C50619: Should be able to book hotel with 2 adults and 2 children',
{ tags: ['@tier1'] },
() => {
Hotels.prepareCompanyAndUserCreation(User_Type.PERSONAL_TRAVELER);
bookPersonalHotel(tripType, adultAndTwoChildrenPassengers);
HotelItinerary.waitToBeLoaded();
HotelItinerary.verifyHotelItineraryPage();
HotelItinerary.verifyTripTile(tripType);
HotelItinerary.clickOnViewAllGuestsButton();
HotelItinerary.verifyNumberOfGuests(1 + adultAndTwoChildrenPassengers.length);
}
);
});