test: new condition to dropList test

This commit is contained in:
Arman
2022-05-06 11:47:37 +02:00
parent 89f176d074
commit 0997a624fd
+8
View File
@@ -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();
});