qe-fe-automation
Version:
FE test automation framework using cypress
28 lines (26 loc) • 756 B
text/typescript
import {
TrainSearchModalUtil,
TrainTripType,
ItaloBookingParams,
TrainBookingManager,
AgencyCurrency
} from '@train-lib/index';
describe('Train: Italo oneway booking', () => {
it(
'C473864: Italo one way booking with guest traveler',
{ tags: ['@italo', '@all_train_test'] },
() => {
TrainSearchModalUtil.createCompanyWithProviderName({
feeModelInfo: AgencyCurrency.Euro
});
TrainBookingManager.createStandardTrainBooking({
origin: ItaloBookingParams.Location.Rome,
destination: ItaloBookingParams.Location.Milan,
fareType: ItaloBookingParams.FareType.STANDARD,
tripType: TrainTripType.ONEWAY,
guestTraveler: true,
noOfTravelers: 2
});
}
);
});