From 3a61b53e49901c454623f067ae14193aa9044552 Mon Sep 17 00:00:00 2001 From: "Felix C. Morency" <1102868+fmorency@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:23:19 -0500 Subject: [PATCH] fix: validatorlist test --- .../admins/components/__tests__/validatorList.test.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/admins/components/__tests__/validatorList.test.tsx b/components/admins/components/__tests__/validatorList.test.tsx index d1b80fa6..f3ff1be7 100644 --- a/components/admins/components/__tests__/validatorList.test.tsx +++ b/components/admins/components/__tests__/validatorList.test.tsx @@ -47,7 +47,11 @@ describe('ValidatorList', () => { test('clicking on a validator row opens the modal', async () => { renderWithProps(); fireEvent.click(screen.getByText('Validator One')); - await waitFor(() => expect(screen.getByRole('dialog')).toBeInTheDocument()); + await waitFor(() => { + expect(screen.getByText('Validator Details')).toBeInTheDocument(); + expect(screen.getByText('SECURITY CONTACT')).toBeInTheDocument(); + expect(screen.getByText('OPERATOR ADDRESS')).toBeInTheDocument(); + }); }); test('remove button works and shows the warning modal', async () => {