qe-fe-automation
Version:
FE test automation framework using cypress
26 lines (24 loc) • 1.02 kB
text/typescript
import { LoginPage } from '@admin-lib/index';
import { Hotels, HotelItinerary, HotelTrip, HotelCheckout } from '@hotel-lib/index';
import { createBookHotelData } from '@fixtures/hotel/booking_data';
import { User_Type } from '@support-onboard/index';
describe('Hotel: change hotel', () => {
it('C1072900: user should be able to change hotel', { tags: ['@tier1'] }, () => {
Hotels.prepareCompanyAndUserCreation(User_Type.ADMIN);
LoginPage.createHotelBookingForOnBoardingCompany(createBookHotelData());
Hotels.visitHotelSearch();
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();
});
});