diff --git a/e2e/pages/shared-lending-platform/UserProfile.spec.ts b/e2e/pages/shared-lending-platform/UserProfile.spec.ts index 8e7f06c4d..50f361cae 100644 --- a/e2e/pages/shared-lending-platform/UserProfile.spec.ts +++ b/e2e/pages/shared-lending-platform/UserProfile.spec.ts @@ -1,5 +1,6 @@ import { expect } from '@playwright/test'; import { test } from '../../fixtures/testFixture'; +import { checkSnapshot } from '../../utils/snapshotTesting'; test('User Profile Page', async ({ page, navigateToFilingHome }) => { // Go to Profile page @@ -7,6 +8,7 @@ test('User Profile Page', async ({ page, navigateToFilingHome }) => { navigateToFilingHome; await page.goto('/profile/view'); await expect(page.locator('h1')).toContainText('View your user profile'); + await checkSnapshot(page); }); // Verify Name + Email diff --git a/e2e/pages/shared-lending-platform/UserProfile.spec.ts-snapshots/User-Profile-Page-1-chromium-darwin.png b/e2e/pages/shared-lending-platform/UserProfile.spec.ts-snapshots/User-Profile-Page-1-chromium-darwin.png new file mode 100644 index 000000000..61f8bc108 Binary files /dev/null and b/e2e/pages/shared-lending-platform/UserProfile.spec.ts-snapshots/User-Profile-Page-1-chromium-darwin.png differ diff --git a/src/components/AssociatedInstitution.tsx b/src/components/AssociatedInstitution.tsx index ec0f869c3..80b7002cd 100644 --- a/src/components/AssociatedInstitution.tsx +++ b/src/components/AssociatedInstitution.tsx @@ -1,7 +1,7 @@ /* eslint-disable react/require-default-props */ import { ListLink } from 'components/Link'; -import { formatPipeSeparatedString } from 'utils/formatting'; import type { InstitutionDetailsApiType } from 'types/formTypes'; +import { formatPipeSeparatedString } from 'utils/formatting'; export function AssociatedInstitution({ name, @@ -17,7 +17,7 @@ export function AssociatedInstitution({ } return ( - + {text} ); diff --git a/src/pages/Filing/ViewUserProfile/UserInformation.tsx b/src/pages/Filing/ViewUserProfile/UserInformation.tsx index ded94f99e..8be66a13d 100644 --- a/src/pages/Filing/ViewUserProfile/UserInformation.tsx +++ b/src/pages/Filing/ViewUserProfile/UserInformation.tsx @@ -28,10 +28,12 @@ export default function UserInformation({ {data.name}} + className='snapshot-ignore' /> {data.email}} + className='snapshot-ignore' />