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

describe('Train: DB guest traveler', () => {
  it('C473870: Deutsche Bahn one way booking with guest traveler', { tags: ['@db', '@all_train_test'] }, () => {
    TrainSearchModalUtil.createCompanyWithProviderName({
      feeModelInfo: AgencyCurrency.Euro
    });
    TrainBookingManager.createStandardTrainBooking({
      origin: DeutscheBahnBookingParams.Location.Berlin,
      destination: DeutscheBahnBookingParams.Location.Munich,
      fareType: DeutscheBahnBookingParams.FareType.STANDARD,
      tripType: TrainTripType.ONEWAY,
      guestTraveler: true,
      noOfTravelers: 2
    });
    TrainItinerary.expectETicketIsDownloadable();
  });
});
