Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/containers/Button/Button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ describe('ButtonTests', () => {
test('disabled button is in disabled state', async () => {
const { findByTestId } = render(<TestButton disabled={true} />);
const button = await findByTestId(testProps.testID);
// In the test environment, RNGH Pressable may still invoke onPress when disabled,
// so we assert the button is in a disabled state (enabled={false}).
// RectButton uses enabled={false}; RNGestureHandlerButton in Jest still invokes onPress from fireEvent.press
expect(button.props.enabled).toBe(false);
});

Expand Down
Loading
Loading