qe-fe-automation
Version:
FE test automation framework using cypress
41 lines (38 loc) • 1.29 kB
text/typescript
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 Alamo 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.ALAMO, 'CD-1234567');
RentalCarInterceptApis.interceptRentalCarApis();
const rentalCarParams: RentalCarParams = {
tripTileType: 'Business',
dropOffType: RentalCarDropOffType.sameDropOff,
pickUpLocation: LocationUtility.getRentalCarAirportUS(),
rentalCarLocationType: RentalCarLocationType.airport,
directBill: true,
rentalCarOperator: 'Alamo'
};
RentalCarUtility.bookingWorkflow(rentalCarParams);
Trips.expectPaymentTypeIsDirectBill();
cy.expectDirectBillBookingIsSuccessful('Alamo Direct Bill');
}
);
});