qe-fe-automation
Version:
FE test automation framework using cypress
27 lines (24 loc) • 1.06 kB
text/typescript
import { LoginPage } from '@admin-lib/index';
import { stagingUsers } from '@fixtures/staging-users';
import { HomePage } from '@rebranded_home_page-lib/home-page';
import { PersonalHomeScreen } from '../../lib/personal_homescreen';
import { BlackCarInterceptApis } from '@blackCar-lib/api-intercept';
import { LocationUtility } from '@utility-lib/location';
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
);
BlackCarInterceptApis.interceptBlackCarApis();
});
it('C4678770: Book a black car for personal only account', { tags: ['@tier2'] }, () => {
HomePage.expandSearchForm();
PersonalHomeScreen.bookPersonalBlackCar(3, LocationUtility.getAddressUS());
});
it('C4678771: View profile for personal only account', { tags: ['@tier1'] }, () => {
PersonalHomeScreen.viewProfile();
});
});