From 188e8c99a7e3d4a1f47d4594ed4ef6a5e27ae427 Mon Sep 17 00:00:00 2001 From: Tim Down Date: Mon, 3 Oct 2022 16:22:02 +0100 Subject: [PATCH] Merge pull request #9790 from overleaf/ds-bug-fix-fetchmock Bug fix- added a missing fetchMock in a test GitOrigin-RevId: c0bb97f6874afa125ea0e966ff819b6fa7e245c9 --- .../components/emails/emails-section-add-new-email.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/test/frontend/features/settings/components/emails/emails-section-add-new-email.test.tsx b/services/web/test/frontend/features/settings/components/emails/emails-section-add-new-email.test.tsx index 31dff15636..448067dad6 100644 --- a/services/web/test/frontend/features/settings/components/emails/emails-section-add-new-email.test.tsx +++ b/services/web/test/frontend/features/settings/components/emails/emails-section-add-new-email.test.tsx @@ -95,6 +95,8 @@ describe('', function () { it('renders "Start adding your address" until a valid email is typed', async function () { fetchMock.get('/user/emails?ensureAffiliation=true', []) + fetchMock.get(`/institutions/domains?hostname=email.com&limit=1`, 200) + fetchMock.get(`/institutions/domains?hostname=email&limit=1`, 200) render() const addAnotherEmailBtn = (await screen.findByRole('button', {