qe-fe-automation
Version:
FE test automation framework using cypress
31 lines (28 loc) • 1.13 kB
text/typescript
import { LoginPage } from '@admin-lib/index';
import { User_Type } from '@support-onboard/index';
import { HomePage } from '@rebranded_home_page-lib/home-page';
import { PersonalInterceptApis } from '../../lib/api-intercept';
import { PersonalHomeScreen } from '../../lib/personal_homescreen';
import { ExploratorySearch } from '../../lib/exploratory_search';
import { FlightInterceptApis } from '@flight-lib/api-intercept';
describe('Personal Travel: Flight Exploratory Search', () => {
beforeEach(() => {
LoginPage.createNewCompanyAndLoginWithUserByType({
users: [User_Type.ADMIN],
companySuffix: 'exprewardspt'
});
FlightInterceptApis.interceptFlightsApis();
PersonalInterceptApis.interceptPersonalTravelApis();
HomePage.visitHomePage();
HomePage.expandSearchForm();
ExploratorySearch.selectVertical('flight');
PersonalHomeScreen.switchToPersonalSearchLanding();
});
it(
'C12971758: Verify new traveler section at checkout for multiple travelers',
{ tags: ['@tier1'] },
() => {
ExploratorySearch.runFlightCheckoutFlowWithCreateTraveler();
}
);
});