qe-fe-automation
Version:
FE test automation framework using cypress
26 lines (24 loc) • 990 B
text/typescript
import { FlightInterceptApis } from '@flight-lib/index';
import { Provider_Type, User_Type } from '@support-onboard/index';
import { LoginPage } from '@admin-lib/login';
import { Checkout } from '../../../lib';
describe('Personal Travel: Flight Hold', () => {
beforeEach(() => {
LoginPage.createNewCompanyAndLoginWithUserByType({
providers: [Provider_Type.SABRE_FLIGHT],
users: [User_Type.PERSONAL_TRAVELER]
});
FlightInterceptApis.interceptFlightsApis();
});
it('C11283759: Flight hold: User should be able to hold the flight', { tags: ['@tier2'] }, () => {
Checkout.holdFlight();
});
it('C12944914: Flight hold: User should be able to release the hold on the flight', { tags: ['@tier1'] }, () => {
Checkout.holdFlight();
Checkout.releaseHoldOnFlight();
});
it('C12944913: Flight hold: User should be able to purchase the flight hold', { tags: ['@tier1'] }, () => {
Checkout.holdFlight();
Checkout.purchaseHoldFlight();
});
});