From aeed5c47277be683652cb86e161f0325468af83f Mon Sep 17 00:00:00 2001 From: Jonathan Newman Date: Tue, 4 Jan 2022 02:52:17 -0600 Subject: [PATCH] improved quality of multi prompt test --- test/index.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/index.test.tsx b/test/index.test.tsx index b1e9713..6a792c1 100644 --- a/test/index.test.tsx +++ b/test/index.test.tsx @@ -98,6 +98,9 @@ describe('Modal Prompt', () => { fireEvent.click(getByTestId('resolve-button2')); await waitFor(() => { expect(button).not.toHaveAttribute('disabled'); + expect(queryByText('Prompt 0')).not.toBeVisible(); + expect(queryByText('Prompt 1')).not.toBeVisible(); + expect(queryByText('Prompt 2')).not.toBeVisible(); }); }); });