-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to test with detox? #60
Comments
This might not be your blocker, but for me I just needed to input the code and get to the next screen to keep my test flow going. I just wound up targeting the parent view and sending the keystrokes there. Worked to get me past the screen but it doesn't give you any deep control with the CodeInput itself. Just a stop-gap. // component
import React from 'react'
import { View } from 'react-native'
const Screen = () => (
<View testID={`parent-view-id`}>
<CodeInput />
</View>
) // spec
describe('component with code input', () => {
it('should type in code', () => {
await element(by.id(`parent-view-id`)).typeText('123456')
})
}) |
@dillonchr this approach doesn't work for me. which version of library and detox are you trying? |
@maxkomarychev we're using |
@oliviayizhang |
Hey @dillonchr @oliviayizhang
|
pass value one to one
|
Is there a way to do detox test with this library? I have no luck finding the element/type text because the code input component doesn't expose individual input and doesn't support testID too.
The text was updated successfully, but these errors were encountered: