Limit the use of the same shortcut title and url when adding a shortcut

Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
AmbrishRamachandiran
2023-08-09 14:07:35 +05:30
parent 16e4c6bfb1
commit bba2d81367
@@ -53,6 +53,12 @@ describe('ShortcutForm', () => {
expect(
screen.getByText('Must be at least 2 characters'),
).toBeInTheDocument();
expect(
screen.queryByText('A shortcut with this title already exists'),
).not.toBeInTheDocument();
expect(
screen.queryByText('A shortcut with this url already exists'),
).not.toBeInTheDocument();
});
});