UNPKG

qe-fe-automation

Version:
19 lines (16 loc) 657 B
import { createGuestDetails } from '@user-lib/index'; import { FlightBookingUtility, FlightUtility } from '@flight-modal/index'; import { User_Type } from '@support-onboard/index'; const adult = createGuestDetails(30, 'MALE', 'Personal'); const child = createGuestDetails(12, 'FEMALE', 'Personal'); describe('Personal Travel: One way flight', () => { it( 'C6201211: should be able to book with 2 adults and 1 child', { tags: ['@tier2'] }, () => { FlightUtility.prepareCompanyAndUserCreation(User_Type.PERSONAL_TRAVELER); delete child.email; FlightBookingUtility.bookOneWayFlight('Personal', [adult, child]); } ); });