diff --git a/graylog2-web-interface/src/components/common/ClipboardIconButton.test.tsx b/graylog2-web-interface/src/components/common/ClipboardIconButton.test.tsx index 0f15c21a13672..f340b104a3b59 100644 --- a/graylog2-web-interface/src/components/common/ClipboardIconButton.test.tsx +++ b/graylog2-web-interface/src/components/common/ClipboardIconButton.test.tsx @@ -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(); + render(); userEvent.click(await screen.findByRole('button', { name: /click here to copy/i }));