Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit c4b11b5

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: fixing test
1 parent 3960aba commit c4b11b5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/features/dashboard/components/AppForm/__tests__/app-form.test.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,16 @@ describe('App Form', () => {
323323
expect(restrictionsList).toBeInTheDocument();
324324

325325
await userEvent.clear(tokenNameInput);
326+
});
327+
328+
it('should hide restrictions if error occurs', async () => {
329+
const submitButton = screen.getByText('Register Application');
330+
331+
const tokenNameInput = screen.getByRole<HTMLInputElement>('textbox', {
332+
name: 'App name (required)',
333+
});
334+
335+
const restrictionsList = screen.queryByRole('list');
326336

327337
await userEvent.type(
328338
tokenNameInput,

0 commit comments

Comments
 (0)