diff --git a/components/lib/button/Button.spec.js b/components/lib/button/Button.spec.js index 5171344dba..fcf46d1e34 100644 --- a/components/lib/button/Button.spec.js +++ b/components/lib/button/Button.spec.js @@ -1,82 +1,158 @@ import '@testing-library/jest-dom'; -import { render } from '@testing-library/react'; +import { fireEvent, render, screen, waitFor } from '@testing-library/react'; import { Button } from './Button'; describe('Button', () => { test('when visible is false Button return null', () => { + // Arrange const { container } = render(