import { Provider_Type } from '@support-onboard/index';
import {
  TrainExchange,
  TrainTripType,
  TrainSearchModalUtil,
  OuiGoBookingParams,
  TrainBookingManager
} from '@train-lib/index';

describe.skip('Train: OUIGO oneway exchange workflow ', () => {
  it(
    'C2317454: Should be able to book and exchange one way train ticket',
    { tags: ['@all_train_test', '@france', '@ouigo'] },
    () => {
      TrainSearchModalUtil.createCompanyWithProviderName({
        split: Provider_Type.TRAIN_INVENTORY_TRAINLINE_OUIGO,
        companySuffix: '-ouigo',
        feeModelInfo: 'EUR'
      });
      TrainBookingManager.createStandardTrainBooking({
        origin: OuiGoBookingParams.Location.Paris,
        destination: OuiGoBookingParams.Location.Lyon,
        tripType: TrainTripType.ONEWAY,
        fareType: OuiGoBookingParams.FareType.STANDARD
      });

      TrainExchange.processExchangeWorkflow(
        'We will send your e-ticket(s) to your email and Navan mobile app'
      );
    }
  );
});
