import { TofStations, TrainSearchModalUtil } from '@train-lib/index';
import { FlightInterceptApis } from '@flight-lib/index';
import { Provider_Type } from '@support-onboard/index';
import { TofFlow } from '@train-lib/tof/tof';

describe('Train: TOF continueWithFlights', () => {
  it(
    'C5199029: TOF Should be able to click continue with flights and verify the flight search results page loaded successfully ',
    { tags: ['@tier2', '@tof', '@all_train_test'] },
    () => {
      FlightInterceptApis.interceptFlightsApis();
      TrainSearchModalUtil.createCompanyWithProviderName({
        split: Provider_Type.TRAIN_OVER_FLIGHTS,
        companySuffix: '-TOF'
      });
      TofFlow.tofSearch(TofStations.TofOrigin, TofStations.TofDestination);
      TofFlow.continueWithFlights();
    }
  );
});
