You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line of detox code generates the following error:
await element(by.type('RCTUITextField').and(by.id('FirstName'))).typeText('John');
Error:
Error: Error Domain=DetoxErrorDomain Code=0 "View “<RCTUITextField: 0x11488c400>” is not visible: View does not pass visibility percent threshold (100)" UserInfo={NSLocalizedDescription=View “<RCTUITextField: 0x11488c400>” is not visible: View does not pass visibility percent threshold (100)}
What was the expected behaviour?
I expected the detox would to type into the react-native TextInput. If I remove the 'flexDirection: 'row' style from the view the TextInput is nested in, detox can find the element and type. I expect Detox to be able to find the element and type into it even if it's nested in a View with flexDirection set.
Was it tested on latest Detox?
I have tested this issue on the latest Detox release and it still reproduces.
I think the problem might be that the dimensions of the containing view (0 0; 162 52) are smaller than the dimensions of the textinput (0 0; 162.333 56).
What happened?
This line of detox code generates the following error:
await element(by.type('RCTUITextField').and(by.id('FirstName'))).typeText('John');
Error:
Error: Error Domain=DetoxErrorDomain Code=0 "View “<RCTUITextField: 0x11488c400>” is not visible: View does not pass visibility percent threshold (100)" UserInfo={NSLocalizedDescription=View “<RCTUITextField: 0x11488c400>” is not visible: View does not pass visibility percent threshold (100)}
What was the expected behaviour?
I expected the detox would to type into the react-native TextInput. If I remove the 'flexDirection: 'row' style from the view the TextInput is nested in, detox can find the element and type. I expect Detox to be able to find the element and type into it even if it's nested in a View with flexDirection set.
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.20.3
React Native version: 0.72.6
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: v20.12.1.
Device model: iPhone 15
iOS version: 17.4
macOS version: 14.4.1
Xcode version: 15.2
Test-runner (select one): jest / other
Detox logs
Detox logs
Device logs
Device logs
More data, please!
The text was updated successfully, but these errors were encountered: