qe-fe-automation
Version:
FE test automation framework using cypress
24 lines (20 loc) • 823 B
text/typescript
import { AdminInterceptsApis, LoginPage } from '@admin-lib/index';
import { Provider_Type, User_Type } from '@support-onboard/index';
describe('Admin: Forgot password user flow', () => {
it('C365933: FE - Forgot password flow', { tags: ['@tier1'] }, () => {
LoginPage.createNewCompanyAndLoginWithUserByType({
providers: [Provider_Type.SABRE_FLIGHT],
users: [User_Type.ADMIN]
});
LoginPage.clearExistingLoginSession();
AdminInterceptsApis.interceptAdminsApis();
LoginPage.visitTALoginPage();
cy.task('getDataFromCache', 'userEmail').then((email: any) => {
LoginPage.enterEmailAndContinue(email, false);
LoginPage.clickForgotPassword();
LoginPage.clickResetButton();
LoginPage.getResetPasswordMessage(email);
});
});
//TODO: add email verification
});