Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
This commit is contained in:
nikolar
2024-01-23 14:00:31 -08:00
parent 96adf78fbd
commit 2bb58bfee2
@@ -115,4 +115,22 @@ describe('FeedbackResponseDialog', () => {
);
});
});
it('will not submit "other" without comments', async () => {
const rendered = await render();
await userEvent.click(
rendered.getByRole('checkbox', { name: 'Incorrect info' }),
);
await userEvent.click(
rendered.getByRole('checkbox', { name: 'Other (please specify below)' }),
);
await userEvent.click(
rendered.getByTestId('feedback-response-dialog-submit-button'),
);
await waitFor(() => {
expect(feedbackApi.recordResponse).toHaveBeenCalledTimes(0);
});
});
});