qe-fe-automation
Version:
FE test automation framework using cypress
33 lines (30 loc) • 926 B
text/typescript
import {
CancellationFlow,
TrainSearchModalUtil,
TrainTripType,
ItaloBookingParams,
TrainBookingManager,
AgencyCurrency
} from '@train-lib/index';
describe('Train: italo cancellation workflow', () => {
it(
'C473867: Should be able to book round 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.ROUND_TRIP
});
CancellationFlow.executeTrainCancellation(
'We will send your e-ticket(s) to your email and Navan mobile app',
TrainTripType.ROUND_TRIP
);
}
);
});