qe-fe-automation
Version:
FE test automation framework using cypress
39 lines (35 loc) • 1.31 kB
text/typescript
import { LoginPage } from '@admin-lib/index';
import { User_Type } from '@support-onboard/index';
import { HotelInterceptApis } from '@hotel-lib/index';
import { Itinerary } from '../../../lib';
import { PersonalInterceptApis } from '../../../lib/api-intercept';
//disabling tests as this feature is not live on prod anymore
describe('Personal Travel: Bleisure Awareness - Extend stay from trips', () => {
beforeEach(() => {
LoginPage.createNewCompanyAndLoginWithUserByType({
users: [User_Type.ADMIN],
companySuffix: 'rewardspt'
});
HotelInterceptApis.interceptHotelApis();
PersonalInterceptApis.interceptPersonalTravelApis();
});
it.skip(
'C10977946: User should be able to initiate search to extend stay at same hotel from trips page\n',
{ tags: ['@tier1'] },
() => {
Itinerary.createBookingAndValidateBanner();
Itinerary.clickAvailbilityButton();
cy.wait('@waitForExtendHotel');
}
);
it.skip(
'C10977947: User should be able to initiate search to extend stay at different hotel from trips page',
{ tags: ['@tier1'] },
() => {
Itinerary.createBookingAndValidateBanner();
Itinerary.clickBookDifferentHotelButton();
Itinerary.clickAvailbilityButton();
cy.wait('@waitForHotelSearch');
}
);
});