Skip to content

Commit

Permalink
fix: validatorlist test
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Dec 5, 2024
1 parent 5a579cf commit 3a61b53
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 3a61b53

Please sign in to comment.