qe-fe-automation
Version:
FE test automation framework using cypress
32 lines (29 loc) • 910 B
text/typescript
import {
TrainExchange,
TrainSearchModalUtil,
TrainTripType,
UkRailBookingParams,
TrainBookingManager,
AgencyCurrency
} from '@train-lib/index';
describe('Train: UK rails oneway exchange', () => {
it(
'C2317456: Should be able to book and exchange one way train ticket',
{ tags: ['@uk_rail', '@all_train_test'] },
() => {
TrainSearchModalUtil.createCompanyWithProviderName({
feeModelInfo: AgencyCurrency.Euro
});
TrainBookingManager.createFirstClassBooking({
origin: UkRailBookingParams.Location.Liverpool,
destination: UkRailBookingParams.Location.Manchester,
fareType: UkRailBookingParams.FareType.FIRST_CLASS,
tripType: TrainTripType.ONEWAY,
trainClass: true
});
TrainExchange.processExchangeWorkflow(
'We will send your e-ticket(s) to your email and Navan mobile app'
);
}
);
});