import {
  TrainSearchModalUtil,
  TrainTripType,
  ItaloBookingParams,
  TrainBookingManager,
  AgencyCurrency
} from '@train-lib/index';

describe('Train: Italo oneway booking', () => {
  it(
    'C473864: Italo one way booking with guest traveler',
    { tags: ['@italo', '@all_train_test'] },
    () => {
      TrainSearchModalUtil.createCompanyWithProviderName({
        feeModelInfo: AgencyCurrency.Euro
      });
      TrainBookingManager.createStandardTrainBooking({
        origin: ItaloBookingParams.Location.Rome,
        destination: ItaloBookingParams.Location.Milan,
        fareType: ItaloBookingParams.FareType.STANDARD,
        tripType: TrainTripType.ONEWAY,
        guestTraveler: true,
        noOfTravelers: 2
      });
    }
  );
});
