Skip to content

Commit bcdc94b

Browse files
committed
check for fields to be invalid
1 parent 8ff81cf commit bcdc94b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

static/app/components/externalIssues/externalIssueForm.spec.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ describe('ExternalIssueForm', () => {
287287
// Should NOT have made an API request
288288
expect(submitRequest).not.toHaveBeenCalled();
289289
expect(closeModal).not.toHaveBeenCalled();
290+
291+
// Should show inline validation errors on the required fields
292+
expect(screen.getByRole('textbox', {name: /title/i})).toBeInvalid();
293+
expect(screen.getByRole('textbox', {name: /repo/i})).toBeInvalid();
290294
});
291295

292296
it('should show an error toast when the submit request fails', async () => {

0 commit comments

Comments
 (0)