qe-fe-automation
Version:
FE test automation framework using cypress
21 lines (19 loc) • 790 B
text/typescript
import { Hotels } from '@hotel-lib/index';
import { LocationUtility } from '@utility-lib/location';
import { User_Type } from '@support-onboard/index';
describe('Hotel: Search', () => {
it(
'C98689: should be able to search with different parameters',
{ tags: ['@tier1'] },
() => {
Hotels.prepareCompanyAndUserCreation(User_Type.TRAVELER);
Hotels.visitHotelSearch();
Hotels.expectHotelSearchPageIsPresent();
Hotels.expectSearchInputIsPresent(LocationUtility.getCityUS());
Hotels.expectSearchInputIsPresent('Navan');
Hotels.expectSearchInputIsPresent(LocationUtility.getCityEU());
Hotels.expectSearchInputIsPresent(LocationUtility.getHotelUS());
Hotels.expectSearchInputIsPresent(LocationUtility.getAddressUS());
}
);
});