Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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