UNPKG

qe-fe-automation

Version:
24 lines (22 loc) 857 B
import { FlightChange, FlightItinerary } from '@flight-lib/index'; import { FlightBookingUtility, FlightUtility } from '@flight-modal/index'; import { Provider_Type, User_Type } from '@support-onboard/index'; describe('Flight: Exchange one way flight: Business Exchange', () => { it( 'C127217 C358331: should be able to exchange business one way flight', { tags: ['@tier1'] }, () => { FlightUtility.prepareCompanyAndUserCreation( User_Type.ADMIN, Provider_Type.MOCK_FLIGHT ); FlightBookingUtility.bookMockOneWayFlight('Business'); cy.wait('@waitForFlightTickets'); FlightItinerary.initiateFlightExchange(); FlightChange.selectDepartureFlight(); FlightChange.proceedToExchangeForm(); FlightChange.searchChangeFlight(); FlightChange.waitAndSelectFirstFare(); } ); });