Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
stacyk committed Sep 26, 2023
1 parent b23230b commit 22db19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/js/lib/components/CopyButton.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Copy Button', () => {
const button = getByRole('button');
expect(button.firstChild).toHaveAttribute('data-icon', 'clipboard');
await fireEvent.click(button);
expect(button.firstChild).toHaveAttribute('data-icon', 'check');
expect(button.firstChild).toHaveAttribute('data-icon', 'copy');
vi.runAllTimers();
await waitFor(() => {
expect(button.firstChild).toHaveAttribute('data-icon', 'clipboard');
Expand Down

0 comments on commit 22db19f

Please sign in to comment.