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 () => {