UNPKG

qe-fe-automation

Version:
31 lines (29 loc) 909 B
import { TrainExchange, TrainSearchModalUtil, TrainTripType, SncfBookingParams, TrainBookingManager, AgencyCurrency } from '@train-lib/index'; describe('Train: SNCF roundtrip exchange workflow', () => { it( 'C2317810: Should be able to book and exchange round train ticket', { tags: ['@sncf', '@all_train_test', '@france'] }, () => { TrainSearchModalUtil.createCompanyWithProviderName({ feeModelInfo: AgencyCurrency.Euro }); TrainBookingManager.createFirstClassBooking({ origin: SncfBookingParams.Location.Paris, destination: SncfBookingParams.Location.Lyon, trainClass: true, tripType: TrainTripType.ROUND_TRIP, fareType: SncfBookingParams.FareType.FIRST_CLASS }); TrainExchange.processExchangeWorkflow( 'We will send your e-ticket(s) to your email and Navan mobile app' ); } ); });