diff --git a/superset-frontend/src/components/Button/Button.test.tsx b/superset-frontend/src/components/Button/Button.test.tsx index f65267f9f1d43..bf037f104e757 100644 --- a/superset-frontend/src/components/Button/Button.test.tsx +++ b/superset-frontend/src/components/Button/Button.test.tsx @@ -16,10 +16,7 @@ * specific language governing permissions and limitations * under the License. */ - -import { isValidElement } from 'react'; -import { ReactWrapper } from 'enzyme'; -import { styledMount as mount } from 'spec/helpers/theming'; +import { fireEvent, render } from 'spec/helpers/testing-library'; import Button from '.'; import { ButtonGallery, @@ -27,36 +24,27 @@ import { STYLES as buttonStyles, } from './Button.stories'; -describe('Button', () => { - let wrapper: ReactWrapper; - - // test the basic component - it('renders the base component', () => { - expect(isValidElement(