Open itsramiel opened 1 month ago
yarn
cd ios && pod install
npx react-native@latest run-ios
maestro test __e2e__/test.yaml
- tapOn: 'Enter text'
For some reason the test fails to pick up tapOn commands in certain conditions.
tapOn
For example it works if you remove the top level Pressable and replace it with a View like so:
View
<View style={styles.screen}> <View style={{ padding: 10, backgroundColor: 'black', flexDirection: 'row', gap: 16, }}> <TextInput placeholder="Enter text" placeholderTextColor="red" /> <Pressable style={{ width: 32, height: 32, backgroundColor: 'red' }}> <Text>Hello</Text> </Pressable> </View> </View>
or it works if you remove the Hello sibling to the text input:
<View style={styles.screen}> <Pressable style={{ padding: 10, backgroundColor: 'black', flexDirection: 'row', gap: 16, }}> <TextInput placeholder="Enter text" placeholderTextColor="red" /> </Pressable> </View>
I expect the text input with the visible placeholder text to be correctly tapped on
React Native open source
macOS: 14.6.1, Apple M3 chip
1.38.1
Homebrew
No response
Is there an existing issue for this?
Steps to reproduce
yarn
, thencd ios && pod install
to install dependenciesnpx react-native@latest run-ios
maestro test __e2e__/test.yaml
- tapOn: 'Enter text'
failsActual results
For some reason the test fails to pick up
tapOn
commands in certain conditions.For example it works if you remove the top level Pressable and replace it with a
View
like so:or it works if you remove theHello sibling to the text input:
Expected results
I expect the text input with the visible placeholder text to be correctly tapped on
About app
React Native open source
About environment
macOS: 14.6.1, Apple M3 chip
Logs
Logs
``` ```Maestro version
1.38.1
How did you install Maestro?
Homebrew
Anything else?
No response