UNPKG

qe-fe-automation

Version:
32 lines (30 loc) 943 B
import { CancellationFlow, TrainBookingManager, TrainSearchModalUtil, TrainTripType, UkRailBookingParams, AgencyCurrency } from '@train-lib/index'; describe('Train: UK rails roundtrip cancellation workflow', () => { it( 'C48359: Should be able to book and cancel round train ticket', { tags: ['@uk_rail', '@all_train_test'] }, () => { TrainSearchModalUtil.createCompanyWithProviderName({ feeModelInfo: AgencyCurrency.Euro }); TrainBookingManager.createFirstClassBooking({ origin: UkRailBookingParams.Location.Liverpool, destination: UkRailBookingParams.Location.Manchester, fareType: ['Off-peak Single'], tripType: TrainTripType.ROUND_TRIP, trainClass: true }); CancellationFlow.executeTrainCancellation( 'We will send your e-ticket(s) to your email and Navan mobile app', TrainTripType.ROUND_TRIP ); } ); });