import {
  IrelandBookingParams,
  TrainBookings,
  TrainSearchModalUtil,
  TrainTripType
} from '@train-lib/index';

// main different between this test and "concierge_round.cy.ts" is that in this scenario the search button is not available we can click on "Request booking" directly
describe('Train: Concierge bookings', () => {
  it(
    'C3855936: Should be able to request one way train concierge (without search button)',
    { tags: ['@tier1', '@all_train_test', '@concierge'] },
    () => {
      TrainSearchModalUtil.createCompanyWithProviderName({});
      TrainBookings.createBooking({
        origin: IrelandBookingParams.Location.Origin,
        destination: IrelandBookingParams.Location.Destination,
        tripType: TrainTripType.ROUND_TRIP,
        isConcierge: true
      });
    }
  );
});
