qe-fe-automation
Version:
FE test automation framework using cypress
31 lines (29 loc) • 995 B
text/typescript
import { LoginPage } from '@admin-lib/index';
import {
HotelItinerary,
HotelTrip,
HotelCheckout,
HotelInterceptApis,
bookHotel
} from '@hotel-lib/index';
import { User_Type } from '@support-onboard/index';
describe('Personal Travel: Hotel - change hotel', () => {
it('C5390179: Traveler changes hotel booking', { tags: ['@tier2'] }, () => {
LoginPage.createNewCompanyAndLoginWithUserByType({ users: [User_Type.TRAVELER] });
HotelInterceptApis.interceptHotelApis();
bookHotel('Personal');
HotelItinerary.visitItinerary();
HotelItinerary.viewAndManageItinerary();
HotelItinerary.changeHotel();
HotelTrip.changeDates();
HotelTrip.checkHotelAvailability();
HotelTrip.selectRoom();
HotelTrip.acceptAcknowledgement();
HotelCheckout.setPhoneNumber();
HotelTrip.bookNewHotel();
HotelTrip.seeNewBooking();
HotelTrip.closeFeedbackModal();
HotelItinerary.showCanceledBooking();
HotelItinerary.expectHotelIsCancelled();
});
});