qe-fe-automation
Version:
FE test automation framework using cypress
28 lines (25 loc) • 953 B
text/typescript
import { GrowthInterceptApis } from '@growth-lib/api-intercept';
import { LoginSelfSell } from '@support-growth/login-self-sell';
import { SignUp } from '@growth-lib/sign-up';
import { DelegatePage } from '@growth-lib/delegate-page';
import { OnboardByApi } from '@growth-lib/onboard-by-api';
import { SignupReason } from '@growth-lib/persona';
describe('Affiliate: new company on-boarding for delegate user', () => {
let token: string;
beforeEach(() => {
GrowthInterceptApis.interceptApis();
LoginSelfSell.createNewSelfSellLead().then((login) => {
token = login.token;
});
});
it(
'C10851793: check header Banner INCENTIVIZE_BFO_1ST_BOOKING',
{ tags: ['@tier1'] },
() => {
SignUp.signupWithSkipAdmin(token, SignupReason.BOOK_FOR_OTHERS, false);
DelegatePage.closeWelcomeModal();
DelegatePage.verifyBFOBannerShownAlsoInHomePage();
OnboardByApi.deleteLastOnboardedCompany();
}
);
});