UNPKG

qe-fe-automation

Version:
28 lines (26 loc) 972 B
import { Trips, RentalCarCheckout, RentalCarOperators, amadeusRentalCarParams, RentalCarUtility } from '@rentalCar-lib/index'; describe.skip('Rental Car: Amadeus Sixt Direct Bill', () => { it( 'C8010730: User should be able to book car using Direct bill and validate the booking data response', { tags: ['@tier1'] }, () => { RentalCarUtility.prepareAmadeusCompanyAndUserCreations(); cy.createDirectBillPaymentMethod(RentalCarOperators.SIXT, 'CD-1234567'); RentalCarUtility.bookRentalCar(amadeusRentalCarParams); RentalCarCheckout.expectBookingSuccessfully(); Trips.validateTripDetails(); Trips.expectDeliveryAndCollectIsPresent(); Trips.expectCollectionImportantMsgIsPresent(); Trips.expectDeliveryAndCollectLocationIsPresent(); Trips.expectEstimatedCostIsCorrect(); Trips.expectPaymentTypeIsDirectBill(); cy.expectDirectBillBookingIsSuccessful('Sixt Direct Bill'); } ); });