qe-fe-automation
Version:
FE test automation framework using cypress
24 lines (21 loc) • 862 B
text/typescript
import { LoginPage } from '@admin-lib/index';
import { stagingUsers } from '@fixtures/staging-users';
import { PersonalHomeScreen } from '../../lib/personal_homescreen';
import { Flights } from '@flight-lib/search';
import { FlightInterceptApis } from '@flight-lib/api-intercept';
const newUserCredentials = Cypress.env('newUser').NEW_USER_PASSWORD;
describe('Personal Travel: Personal-only accounts', () => {
beforeEach(() => {
LoginPage.visitTALoginPage();
LoginPage.loginWithCredentials(
stagingUsers.personal_only_user.email,
newUserCredentials
);
FlightInterceptApis.interceptFlightsApis();
});
it('C4678767: Book a flight for personal only account', { tags: ['@tier2'] }, () => {
Flights.visitFlightSearchPage();
PersonalHomeScreen.bookPersonalFlight();
PersonalHomeScreen.cancelBooking('Flight');
});
});