From 87cf4964245244521c77e0733003a2e458adc390 Mon Sep 17 00:00:00 2001 From: svalexander Date: Mon, 6 May 2024 18:02:56 -0400 Subject: [PATCH 1/3] remove erroneous arcgis test and duplicate import --- ...-location-post-office-search-step.spec.tsx | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx b/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx index 8a3d6155bda..630da44a9dc 100644 --- a/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx +++ b/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx @@ -5,7 +5,6 @@ import { i18n } from '@18f/identity-i18n'; import { usePropertyValue } from '@18f/identity-test-helpers'; import { setupServer } from 'msw/node'; import { http, HttpResponse } from 'msw'; -import type { SetupServer } from 'msw/node'; import { SWRConfig } from 'swr'; import { ComponentType } from 'react'; import { InPersonContext } from '../context'; @@ -94,31 +93,6 @@ describe('InPersonLocationPostOfficeSearchStep', () => { server.resetHandlers(); }); - context('initial ArcGIS API request throws an error', () => { - beforeEach(() => { - server.use(http.post(addressSearchURL, () => HttpResponse.json([], { status: 422 }))); - }); - - it('displays a try again error message', async () => { - const { findByText, findByLabelText } = render( - new Map() }}> - - , - ); - - await userEvent.type( - await findByLabelText('in_person_proofing.body.location.po_search.address_search_label'), - '222 Merchandise Mart Plaza', - ); - - await userEvent.click( - await findByText('in_person_proofing.body.location.po_search.search_button'), - ); - - const error = await findByText('idv.failure.exceptions.post_office_search_error'); - expect(error).to.exist(); - }); - }); context('initial USPS API request throws an error', () => { beforeEach(() => { server.use( From 21006113a8943ed52d2511636c8f8a3cf2d4bc60 Mon Sep 17 00:00:00 2001 From: svalexander Date: Mon, 13 May 2024 16:07:09 -0400 Subject: [PATCH 2/3] changelog: Internal, Post office search spec, remove unused arcgis test From 59bf0d56b80b425eee90777432331e18c2c87748 Mon Sep 17 00:00:00 2001 From: svalexander Date: Mon, 13 May 2024 17:31:09 -0400 Subject: [PATCH 3/3] put import back in --- .../in-person-location-post-office-search-step.spec.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx b/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx index 630da44a9dc..32c7a051005 100644 --- a/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx +++ b/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.spec.tsx @@ -5,6 +5,7 @@ import { i18n } from '@18f/identity-i18n'; import { usePropertyValue } from '@18f/identity-test-helpers'; import { setupServer } from 'msw/node'; import { http, HttpResponse } from 'msw'; +import type { SetupServer } from 'msw/node'; import { SWRConfig } from 'swr'; import { ComponentType } from 'react'; import { InPersonContext } from '../context';