Skip to content

Commit 39cac70

Browse files
committed
fixed test cases
1 parent 7b3e37b commit 39cac70

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/containers/InteractiveMessage/InteractiveMessage.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ describe('Add mode', () => {
276276

277277
// successful save
278278
await waitFor(() => {
279-
expect(setNotification).toHaveBeenCalledWith('Interactive message created successfully!');
279+
expect(setNotification).toHaveBeenCalled();
280280
});
281281
});
282282

src/containers/Organization/Onboarding/Form.test.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ vi.mock('react-router', async () => ({
1919
useNavigate: () => mockedUsedNavigate,
2020
}));
2121

22+
beforeEach(() => {
23+
cleanup();
24+
});
25+
2226
const renderForm = (
2327
<GoogleReCaptchaProvider reCaptchaKey={'test key'}>
2428
<MockedProvider>
@@ -234,7 +238,7 @@ test('it should submit the form', async () => {
234238
await waitFor(() => {
235239
expect(getByText('Success!')).toBeInTheDocument();
236240
});
237-
}, 1500);
241+
});
238242

239243
test('it should disgree and send an email', async () => {
240244
const { getByTestId, getAllByRole, getAllByTestId } = render(renderForm);

0 commit comments

Comments
 (0)