qe-fe-automation
Version:
FE test automation framework using cypress
48 lines (43 loc) • 1.44 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 { PersonalHomeScreen } from '../../lib/personal_homescreen';
import { Promotion } from '../../lib/promotions';
describe('Personal Travel: Personal Travel Homescreen', () => {
beforeEach(() => {
LoginPage.createNewCompanyAndLoginWithUserByType({
users: [User_Type.ADMIN],
companySuffix: 'holidaypromo'
});
HomePage.verifyMinimizedSearch();
});
it(
'C10517673: Verify active promotions pills are shown on personal travel homepage',
{ tags: ['@tier2'] },
() => {
PersonalHomeScreen.switchToPersonalTravel();
Promotion.viewAndClosePromotionModal();
Promotion.promotionPillsShown();
}
);
it(
'C10517674: Verify user is able to claim the active promotion from the carousel',
{ tags: ['@tier1'] },
() => {
PersonalHomeScreen.switchToPersonalTravel();
Promotion.viewAndClosePromotionModal();
Promotion.claimFlightPromotion();
Promotion.bookFlightCta();
}
);
it(
'C10517675: Verify user is able to claim the active promotion from the pill',
{ tags: ['@tier1'] },
() => {
PersonalHomeScreen.switchToPersonalTravel();
Promotion.viewAndClosePromotionModal();
Promotion.claimRewardsPromotion();
Promotion.bookHotelCta();
}
);
});