Skip to content

Commit

Permalink
added phone extension to Verification field on sign and submit, updat…
Browse files Browse the repository at this point in the history
…ed e2e tests
  • Loading branch information
shindigira committed Sep 25, 2024
1 parent df2ce2b commit 8f50bca
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/example.spec.demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ test('proof of concept', async ({ page }) => {
await page
.getByLabel('Work phone numberPhone number')
.fill(pointOfContactJson.phone_number);
await page
.getByLabel('Extension (optional)Extension')
.fill(pointOfContactJson.phone_ext);
await page
.getByLabel('Email addressEmail address')
.fill(pointOfContactJson.email);
Expand Down
4 changes: 4 additions & 0 deletions e2e/fixtures/testFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ export const test = baseTest.extend<{
await page.getByRole('button', { name: 'Continue to next step' }).click();
await expect(page.locator('h1')).toContainText(
'Provide point of contact',
{ timeout: 30_000 },
);
});
await use(page);
Expand All @@ -275,6 +276,9 @@ export const test = baseTest.extend<{
await page
.getByLabel('Work phone numberPhone number')
.fill(pointOfContactJson.phone_number);
await page
.getByLabel('Extension (optional)Extension')
.fill(pointOfContactJson.phone_ext);
await page
.getByLabel('Email addressEmail address')
.fill(pointOfContactJson.email);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"hq_address_state": "CA",
"hq_address_zip": "55555",
"phone_number": "555-555-5555",
"phone_ext": "8942",
"email": "point_of_contact_email@email.test"
}
1 change: 1 addition & 0 deletions src/pages/Filing/FilingApp/FilingSubmit.helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function PointOfContactConfirm({
<DisplayField label='Last name' value={poc?.last_name} />
<DisplayField label='Email address' value={poc?.email} />
<DisplayField label='Work phone number' value={poc?.phone_number} />
<DisplayField label='Work phone extension' value={poc?.phone_ext} />
<DisplayField
label='Business address'
value={
Expand Down
1 change: 1 addition & 0 deletions src/types/filingTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const FilingSchema = z.object({
hq_address_zip: z.string(),
email: z.string(),
phone_number: z.string(),
phone_ext: z.string(),
}),
z.null(),
]),
Expand Down
1 change: 1 addition & 0 deletions src/types/formTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export const ContactInfoMap = {
first_name: 'firstName',
last_name: 'lastName',
phone_number: 'phone',
phone_ext: 'phoneExtension',
email: 'email',
hq_address_street_1: 'hq_address_street_1',
hq_address_street_2: 'hq_address_street_2',
Expand Down

0 comments on commit 8f50bca

Please sign in to comment.