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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user