Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
linuspahl committed Dec 6, 2024
1 parent 60a0866 commit efe657f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jest.mock('util/copyToClipboard', () => jest.fn(() => Promise.resolve()));
describe('ClipboardIconButton', () => {
it('should copy provided text to clipboard', async () => {
const text = 'Text to copy';
render(<ClipboardIconButton text={text} buttonTitle="Click here to copy" name="copy_all" />);
render(<ClipboardIconButton text={text} buttonTitle="Click here to copy" />);

userEvent.click(await screen.findByRole('button', { name: /click here to copy/i }));

Expand Down

0 comments on commit efe657f

Please sign in to comment.