UNPKG

qe-fe-automation

Version:
30 lines (27 loc) 821 B
import { SignUp, GrowthInterceptApis, AmplitudeEvents, AdminClaim, LoginSelfSell } from '@growth-lib/index'; import { OnboardByApi } from '@growth-lib/onboard-by-api'; describe('Growth: new LHG company on-boarding', () => { let token: string; beforeEach(() => { GrowthInterceptApis.interceptApis(); LoginSelfSell.createNewSelfSellLead({ affiliateName: 'LHG' }).then((login) => { token = login.token; }); }); it('C5809352: Onboard as self sell LHG user mobile', { tags: ['@tier1'] }, () => { SignUp.signupFlow(token, 'MARKETING_PAGE', true); SignUp.clickSubmit(); AdminClaim.fillLhgAdminClaim(false); SignUp.adminClaimSuccessWithoutMaxEmployees(); AmplitudeEvents.expectAmplitudeEventsToBeSent(); OnboardByApi.deleteLastOnboardedCompany(); }); });