Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions __tests__/components/TruncatedAddress.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ describe('TruncatedAddress', () => {
});

expect(writeTextSpy).toHaveBeenCalledWith(ADDRESS);
expect(
screen.getByRole('button', {
name: 'Copy full address to clipboard',
}),
).toHaveAttribute('title', 'Copy full address to clipboard');
});

it('auto-hides the tooltip after the timeout elapses', () => {
Expand Down
1 change: 1 addition & 0 deletions components/ui/TruncatedAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export default function TruncatedAddress({
type="button"
onClick={copy}
aria-label="Copy full address to clipboard"
title="Copy full address to clipboard"
className="shrink-0 flex items-center justify-center w-6 h-6 rounded hover:bg-gray-700 transition text-gray-400 hover:text-white pointer-events-auto"
>
{copied ? (
Expand Down