UNPKG

qe-fe-automation

Version:
32 lines (29 loc) 910 B
import { TrainExchange, TrainSearchModalUtil, TrainTripType, UkRailBookingParams, TrainBookingManager, AgencyCurrency } from '@train-lib/index'; describe('Train: UK rails oneway exchange', () => { it( 'C2317456: Should be able to book and exchange one way train ticket', { tags: ['@uk_rail', '@all_train_test'] }, () => { TrainSearchModalUtil.createCompanyWithProviderName({ feeModelInfo: AgencyCurrency.Euro }); TrainBookingManager.createFirstClassBooking({ origin: UkRailBookingParams.Location.Liverpool, destination: UkRailBookingParams.Location.Manchester, fareType: UkRailBookingParams.FareType.FIRST_CLASS, tripType: TrainTripType.ONEWAY, trainClass: true }); TrainExchange.processExchangeWorkflow( 'We will send your e-ticket(s) to your email and Navan mobile app' ); } ); });