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

describe('Train: SNCF guest traveler', () => {
  it('C473860: SNCF one way booking with guest traveler', { tags: ['@sncf', '@all_train_test', '@france'] }, () => {
    TrainSearchModalUtil.createCompanyWithProviderName({
      feeModelInfo: AgencyCurrency.Euro
    });
    TrainBookingManager.createStandardTrainBooking({
      origin: SncfBookingParams.Location.Paris,
      destination: SncfBookingParams.Location.Lyon,
      fareType: SncfBookingParams.FareType.STANDARD,
      tripType: TrainTripType.ONEWAY,
      guestTraveler: true,
      noOfTravelers: 2
    });
    TrainItinerary.expectETicketIsDownloadable();
  });
});
