mirror of
https://github.com/appwrite/console.git
synced 2026-04-07 19:17:46 +00:00
test: new condition to dropList test
This commit is contained in:
@@ -34,3 +34,11 @@ test('hide drop list on wrapper click', async () => {
|
||||
await fireEvent.click(wrapper);
|
||||
expect(dropList).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('drop list visible on list click', async () => {
|
||||
render(DropList, { ...data });
|
||||
const dropList = document.querySelector('ul');
|
||||
|
||||
await fireEvent.click(dropList);
|
||||
expect(dropList).toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user