qe-fe-automation
Version:
FE test automation framework using cypress
38 lines (33 loc) • 1.71 kB
text/typescript
import { GoogleSignUp } from '@growth-lib/google-sign-up';
import { GrowthInterceptApis } from '@growth-lib/api-intercept';
import { GrowthUtilities } from '@growth-lib/growth-utilities';
import { OnboardByApi } from '@growth-lib/onboard-by-api';
import { getUserBaseUrlPrefix } from '../../../../../support/commands';
import { OnboardingGuide } from '@growth-lib/onboarding-guide';
import { AmplitudeEvents } from '@growth-lib/amplitude-events';
import { FreePricing } from '@growth-lib/free-pricing';
import { Persona } from '@growth-lib/persona';
describe.skip('Google: new company on-boarding from marketing landing page with google account', () => {
const userEmail = 'auto1@navguardavant.com';
const password = 'Trip@123';
beforeEach(() => {
GrowthInterceptApis.interceptApis();
GoogleSignUp.deleteUserFromAuth0(userEmail);
GoogleSignUp.visitGoogleSignUpPage(userEmail, `${getUserBaseUrlPrefix()}/self-signup/google?email=${userEmail}`);
GoogleSignUp.goToSignIUpWithGoogle();
GoogleSignUp.signUpWithGoogle(userEmail, password);
});
it('C12714204: Sign up with google through marketing landing page - T & E', { tags: ['@tier1'] }, () => {
Persona.answerFirstPersonaAsTravelerAndExpanseManagerAccount();
FreePricing.verifyExpensePricingScreenIsOpened();
AmplitudeEvents.expectAmplitudeEventsToBeSent();
});
it('C12714205: Sign up with google through marketing landing page - Travel', { tags: ['@tier1'] }, () => {
GrowthUtilities.fillAdminClaimFlowNoExpenseFlow();
OnboardingGuide.verifyOnboardingGuideOpen();
AmplitudeEvents.expectAmplitudeEventsToBeSent();
});
afterEach(() => {
OnboardByApi.deleteLastOnboardedCompany();
});
});