UNPKG

qe-fe-automation

Version:
41 lines (38 loc) 1.3 kB
import { LoginPage } from '@admin-lib/login'; import { RentalCarInterceptApis, RentalCarDropOffType, RentalCarParams, RentalCarUtility, RentalCarLocationType, LocationUtility, Trips, Provider_Type, User_Type, RentalCarOperators } from '@rentalCar-lib/index'; describe.skip('Rental car: Sabre National Direct Bill', () => { it( 'C3810613: User should be able to book car using Direct bill and validate the booking data response', { tags: ['@tier1'] }, () => { LoginPage.createNewCompanyAndLoginWithUserByType({ providers: [Provider_Type.ALL_CAR], users: [User_Type.ADMIN] }); cy.createDirectBillPaymentMethod(RentalCarOperators.NATIONAL, 'CD-1234567'); RentalCarInterceptApis.interceptRentalCarApis(); const rentalCarParams: RentalCarParams = { tripTileType: 'Business', dropOffType: RentalCarDropOffType.sameDropOff, pickUpLocation: LocationUtility.getRentalCarAirportUS(), rentalCarLocationType: RentalCarLocationType.airport, directBill: true, rentalCarOperator: 'National' }; RentalCarUtility.bookingWorkflow(rentalCarParams); Trips.expectPaymentTypeIsDirectBill(); cy.expectDirectBillBookingIsSuccessful('National Direct Bill'); } ); });