import {mountWithTheme} from 'sentry-test/reactTestingLibrary'; import Button from 'app/components/button'; import ButtonBar from 'app/components/buttonBar'; describe('ButtonBar', function () { const createWrapper = () => mountWithTheme( ); it('has "Second Button" as the active button in the bar', function () { const {getByLabelText} = createWrapper(); expect(getByLabelText('First Button')).not.toHaveClass('active'); expect(getByLabelText('Second Button')).toHaveClass('active'); }); });