UNPKG

qe-fe-automation

Version:
30 lines (27 loc) 1.14 kB
import { LoginPage } from '@admin-lib/index'; import { FlightInterceptApis } from '@flight-lib/index'; import { ProfileInterceptApis } from '@profile-lib/api-intercept'; import { NotificationsModal } from '@profile-lib/notifications'; import { Provider_Type, User_Type } from '@support-onboard/index'; describe('Trips: Notification settings test', () => { beforeEach(() => { LoginPage.createNewCompanyAndLoginWithUserByType({ providers: [Provider_Type.SABRE_FLIGHT], users: [User_Type.DELEGATE] }); FlightInterceptApis.interceptFlightsApis(); ProfileInterceptApis.interceptProfileApis(); }); it('C127193: Verify notifications can be updated', { tags: ['@tier2'] }, () => { const email = 1; const push = 5; const sms = 11; const firstGroups = 'Initial'; const secondGroups = 'Updated'; NotificationsModal.visitNotificationsPage(); NotificationsModal.getNotificationsInfo(firstGroups); NotificationsModal.changeNotificationSettings(email, push, sms); NotificationsModal.getNotificationsInfo(secondGroups); NotificationsModal.compareNotificationSettings(); }); });