qe-fe-automation
Version:
FE test automation framework using cypress
34 lines (29 loc) • 1.22 kB
text/typescript
import { LoginPage } from '@admin-lib/login';
import { Provider_Type, User_Type } from '@support-onboard/index';
import { FlightInterceptApis } from '@flight-lib/index';
import { HotelInterceptApis, bookHotel } from '@hotel-lib/index';
import { TripsPage } from '../../../trips/lib';
import { FlightBookingUtility } from '@flight-modal/flight_booking_utility';
const tripTileType = 'Personal';
describe('Personal Travel: Trips page validation for personal trips', () => {
beforeEach(() => {
LoginPage.createNewCompanyAndLoginWithUserByType({
providers: [Provider_Type.SABRE_FLIGHT],
users: [User_Type.PERSONAL_TRAVELER]
});
FlightInterceptApis.interceptFlightsApis();
HotelInterceptApis.interceptHotelApis();
});
it.skip('C5390183: Merge personal trips', { tags: ['@tier1'] }, () => {
const mergedName = 'Merged Trip';
FlightBookingUtility.bookOneWayFlight(tripTileType);
bookHotel('Personal');
TripsPage.visitPage();
TripsPage.mergeTrip(mergedName);
});
it('C5395136: Rename personal trips', { tags: ['@tier1'] }, () => {
const tripName = 'Rename Trip';
FlightBookingUtility.bookOneWayFlight(tripTileType);
TripsPage.renameTrip(tripName);
});
});