qe-fe-automation
Version:
FE test automation framework using cypress
25 lines (23 loc) • 955 B
text/typescript
import { eventData } from '@fixtures/event/event_data';
import { CreateEvent, EventsWorkflow, Invitations } from '@group-events-lib/index';
import {
RentalCarInterceptApis,
RentalCar,
RentalCarSearchResults,
RentalCarCheckout
} from '@rentalCar-lib/index';
describe.skip('GME: Team event: rental car booking', () => {
it('C51002: FE - Book a rental car in the Team Event', { tags: ['@tier1'] }, () => {
EventsWorkflow.createCompanyAndTeamEvents();
RentalCarInterceptApis.interceptRentalCarApis();
CreateEvent.openSearchPage();
Invitations.verifyInvitationName(eventData.eventName);
CreateEvent.selectTeamEventVertical('car');
RentalCar.eventSearchRentalCar();
RentalCarSearchResults.selectCar();
RentalCarCheckout.waitToBeLoadedForEvent();
RentalCarCheckout.setAcknowledgement();
RentalCarCheckout.checkOutCar(false);
RentalCarCheckout.expectRentalCarBookingSuccessfully('Car confirmed!');
});
});