// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {fireEvent, render, within} from '@testing-library/react-native'; import React, {type ComponentProps} from 'react'; import {View, Text} from 'react-native'; import {Preferences} from '@constants'; import Button from './index'; describe('components/button', () => { const getBaseProps = (): ComponentProps => ({ onPress: jest.fn(), text: 'Test Button', theme: Preferences.THEMES.denim, testID: 'test-button', }); it('should render button with text', () => { const props = getBaseProps(); const {getByText} = render(