UNPKG

qe-fe-automation

Version:
38 lines (36 loc) • 1.22 kB
import { LoginPage } from '@admin-lib/login'; import { RentalCarInterceptApis, RentalCarDropOffType, RentalCarUtility, RentalCarLocationType, RentalCarParams, RentalCarOperators, LocationUtility, Provider_Type, User_Type } from '@rentalCar-lib/index'; describe.skip('Rental car: Sabre Invalid Avis Direct Bill', () => { it( 'C3810613: User should see an error message when trying to book a rental car with an invalid direct bill payment method', { tags: ['@tier1'] }, () => { LoginPage.createNewCompanyAndLoginWithUserByType({ providers: [Provider_Type.ALL_CAR], users: [User_Type.ADMIN] }); cy.createDirectBillPaymentMethod(RentalCarOperators.AVIS, '7ZS17WX'); RentalCarInterceptApis.interceptRentalCarApis(); const rentalCarParams: RentalCarParams = { tripTileType: 'Business', dropOffType: RentalCarDropOffType.sameDropOff, pickUpLocation: LocationUtility.getRentalCarAirportUS(), rentalCarLocationType: RentalCarLocationType.general, directBill: true, rentalCarOperator: 'Avis', invalidCard: true }; RentalCarUtility.bookingWorkflow(rentalCarParams, true); } ); });