qe-fe-automation
Version:
FE test automation framework using cypress
33 lines (31 loc) • 941 B
text/typescript
import {
TrainExchange,
TrainSearchModalUtil,
TrainTripType,
AmtrakBookingParams,
TrainBookingManager
} from '@train-lib/index';
describe('Train: Amtrak segment exchange workflow', () => {
it(
'C2317453: Users should be able to exchange second leg of round trip ticket',
{ tags: ['@amtrak', '@all_train_test'] },
() => {
TrainSearchModalUtil.createCompanyWithProviderName({
phoneNumber: '+12029064406'
});
const tripType = TrainTripType.ROUND_TRIP;
TrainBookingManager.createFirstClassBooking({
origin: AmtrakBookingParams.Location.NewYork,
destination: AmtrakBookingParams.Location.Washington,
trainClass: true,
fareType: AmtrakBookingParams.FareType.FIRST_CLASS,
tripType
});
TrainExchange.processExchangeWorkflow(
'We advise you to print your e-ticket(s) for this route.',
1,
true
);
}
);
});