UNPKG

qe-fe-automation

Version:
33 lines (30 loc) 937 B
import { CancellationFlow, TrainSearchModalUtil, TrainTripType, ItaloBookingParams, TrainBookingManager, AgencyCurrency } from '@train-lib/index'; describe('Train: italo oneway cancellation workflow', () => { it( 'C48354: Should be able to book and cancel one way train ticket', { tags: ['@italo', '@all_train_test'] }, () => { TrainSearchModalUtil.createCompanyWithProviderName({ feeModelInfo: AgencyCurrency.Euro }); TrainBookingManager.createFirstClassBooking({ origin: ItaloBookingParams.Location.Rome, destination: ItaloBookingParams.Location.Milan, trainClass: true, fareType: ItaloBookingParams.FareType.FIRST_CLASS, tripType: TrainTripType.ONEWAY }); CancellationFlow.executeTrainCancellation( 'We will send your e-ticket(s) to your email and Navan mobile app', TrainTripType.ONEWAY ); } ); });