From d950794a37b1ce0a6070a6fad49674e37421d106 Mon Sep 17 00:00:00 2001 From: Brian Mitchell Date: Thu, 6 Feb 2025 17:18:57 -0600 Subject: [PATCH] Open exclusions tab in spec --- src/Main.test.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Main.test.tsx b/src/Main.test.tsx index a168a31..2e337f9 100644 --- a/src/Main.test.tsx +++ b/src/Main.test.tsx @@ -125,6 +125,12 @@ it('seeds with example data when clicking the fill with example data button and expect(within(peopleTabpanel).queryAllByRole('listitem')).toHaveLength(14); + await userEvent.click(screen.getByRole('tab', { name: /exclusions/i })); + const exclusionsTabpanel = screen.getByRole('tabpanel', { + name: 'Exclusions', + }); + expect(within(exclusionsTabpanel).queryAllByRole('listitem')).toHaveLength(4); + expect( screen.queryByRole('button', { name: /fill with example data/i }), ).toBeDisabled();