Skip to content

Commit

Permalink
LG-13154 remove erroneous arcgis test (#10607)
Browse files Browse the repository at this point in the history
* remove erroneous arcgis test and duplicate import

* changelog: Internal, Post office search spec, remove unused arcgis test

* put import back in
  • Loading branch information
svalexander committed May 14, 2024
1 parent ff97682 commit 7f89bf2
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,31 +94,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(
<SWRConfig value={{ provider: () => new Map() }}>
<InPersonLocationPostOfficeSearchStep {...DEFAULT_PROPS} />
</SWRConfig>,
);

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(
Expand Down

0 comments on commit 7f89bf2

Please sign in to comment.