Skip to content

Commit

Permalink
fix: validatorList test
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Nov 6, 2024
1 parent 54a1c06 commit b8b4dc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/admins/components/__tests__/validatorList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('ValidatorList', () => {

test('renders correctly', () => {
renderWithProps();
expect(screen.getByText('Active Validators')).toBeInTheDocument();
expect(screen.getByText('Active')).toBeInTheDocument();
expect(screen.getByText('Validator One')).toBeInTheDocument();
expect(screen.getByText('Validator Two')).toBeInTheDocument();
});
Expand All @@ -40,7 +40,7 @@ describe('ValidatorList', () => {
test('active/pending toggle works', () => {
renderWithProps();
fireEvent.click(screen.getByText('Pending'));
expect(screen.getByText('Pending Validators')).toBeInTheDocument();
expect(screen.getByText('Pending')).toBeInTheDocument();
expect(screen.getByText('Validator Three')).toBeInTheDocument();
});

Expand Down
4 changes: 2 additions & 2 deletions components/admins/modals/validatorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ export function ValidatorDetailsModal({
<span className="text-sm text-gray-500 dark:text-gray-400">
OPERATOR ADDRESS
</span>
<p className="text-md mt-2">
<div className="text-md mt-2">
<TruncatedAddressWithCopy address={validator?.operator_address} slice={42} />
</p>
</div>
</div>
<div className="dark:bg-[#FFFFFF0F] bg-[#0000000A] rounded-[12px] p-4">
<div className="flex flex-row justify-between items-center relative">
Expand Down

0 comments on commit b8b4dc5

Please sign in to comment.