Closed
Description
Describe the Feature
Currently, when there is a wrapping View
with pointerEvents="none"
testing lib still allows pressing buttons that are rendered inside of that View.
Expected behaviour:
// component
<View pointerEvents="none">
<Touchable onPress={onPress}>Click me</Touchable>
</View>
...
// test
const mockOnPress = jest.fn();
const { getByText } = render(<Component onPress={mockOnPress} />);
fireEvent.press(getByText('Click me'));
expect(mockOnPress).not.toHaveBeenCalled();
Possible Implementations
No idea, cause I am not familiar with the codebase :(
Related Issues
Metadata
Metadata
Assignees
Labels
No labels