qe-fe-automation
Version:
FE test automation framework using cypress
25 lines (22 loc) • 912 B
text/typescript
import { HotelInterceptApis } from '@hotel-lib/index';
import { Checkout } from '../../../lib';
import { Utility } from '@utility-lib/utility';
import { PersonalInterceptApis } from '../../../lib/api-intercept';
import { Rewards } from '../../../../rewards/lib/rewards';
const newUserCredentials = Cypress.env('newUser').NEW_USER_PASSWORD;
describe('Personal Travel: Bleisure - Adding hotel nights from checkout', () => {
beforeEach(() => {
Rewards.loginAsRewardsCompanyDelegate(newUserCredentials);
Utility.visitSearchPage();
Utility.selectTripTileType('Business');
HotelInterceptApis.interceptHotelApis();
PersonalInterceptApis.interceptPersonalTravelApis();
});
it(
'C7388403: Book for others - User should be able to extend the trip for same hotel on personal booking at checkout',
{ tags: ['@tier2'] },
() => {
Checkout.bookExtensionForOthers();
}
);
});