mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
test: update tests
This commit is contained in:
@@ -9,8 +9,14 @@ test('shows button', () => {
|
||||
expect(getByRole('button')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('shows link', () => {
|
||||
render(SecondaryTabsItem, { href: 'https://www.appwrite.io' });
|
||||
const href = document.querySelector('a');
|
||||
expect(href).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('shows button - disabled', () => {
|
||||
const { getByRole } = render(SecondaryTabsItem, { disabled: true });
|
||||
const { getByRole } = render(SecondaryTabsItem, { href: null, disabled: true });
|
||||
|
||||
expect(getByRole('button')).toBeDisabled();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user