From 0997a624fdbf95caa91cd3e223bb308448ec02ea Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 6 May 2022 11:47:37 +0200 Subject: [PATCH] test: new condition to dropList test --- tests/unit/components/dropList.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unit/components/dropList.test.ts b/tests/unit/components/dropList.test.ts index 656fc204f..9a88fed4e 100644 --- a/tests/unit/components/dropList.test.ts +++ b/tests/unit/components/dropList.test.ts @@ -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(); +});