qe-fe-automation
Version:
FE test automation framework using cypress
36 lines (31 loc) • 931 B
text/typescript
import {
TrainExchange,
TrainSearchModalUtil,
TrainTripType,
AmtrakBookingParams,
TrainBookingManager
} from '@train-lib/index';
describe('Train: Amtrak oneway exchange workflow', () => {
it(
'C2317453: Should be able to book and exchange one way train ticket',
{ tags: ['@amtrak', '@all_train_test'] },
() => {
TrainSearchModalUtil.createCompanyWithProviderName({
phoneNumber: '+12029064406'
});
const tripType = TrainTripType.ONEWAY;
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.',
0,
true
);
}
);
});