qe-fe-automation
Version:
FE test automation framework using cypress
30 lines (26 loc) • 884 B
text/typescript
import {
GrowthInterceptApis,
LoginSelfSell,
SignUp,
OnboardingGuide
} from '@growth-lib/index';
import { GrowthUtilities } from '@growth-lib/growth-utilities';
describe('Affiliate: flow with onboarding guide menu - perform Travel and expense tasks', () => {
let token: string;
beforeEach(() => {
GrowthInterceptApis.interceptApis();
LoginSelfSell.createNewSelfSellLead().then((login) => {
token = login.token;
});
});
it(
'C9124245: Onboard as self sell user and redirect to onboarding guide menu and complete travel and expense tasks',
{ tags: ['@tier1', '@onboardingGuideIndependent'] },
() => {
SignUp.fillSignUpForm(token, 'MARKETING_PAGE');
GrowthUtilities.fillAdminClaimFlowTravelAndExpenseFlow();
OnboardingGuide.verifyOnboardingGuideOpen();
OnboardingGuide.fillAllOnboardingTasks(true);
}
);
});