qe-fe-automation
Version:
FE test automation framework using cypress
21 lines (18 loc) • 802 B
text/typescript
import { Hotels, HotelSearchResults } from '@hotel-lib/index';
import { User_Type } from '@support-onboard/index';
import { LocationUtility } from '@utility-lib/index';
describe('Hotel: edit search', () => {
it('C151450: Traveler searches again from results page', { tags: ['@tier1'] }, () => {
const locations = LocationUtility.getCitiesUSAsPickUpAndDropOff();
Hotels.prepareCompanyAndUserCreation(User_Type.TRAVELER);
Hotels.visitHotelSearch();
Hotels.setCheckInCheckOutDate();
Hotels.selectHotelLocation(locations[0]);
Hotels.searchHotel();
HotelSearchResults.editSearch();
HotelSearchResults.selectHotelLocation(locations[1]);
HotelSearchResults.selectRoom(1);
HotelSearchResults.setCheckInCheckOutDate();
HotelSearchResults.searchHotel();
});
});