-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
element.typeText() will fail test when hardware keyboard connected #768
Comments
Maybe related to #39 ? |
This is the expected result. EarlGrey looks for software keyboard and taps on its keys to emulate text writing. If you don't care about emulating all tap events and want to avoid all keyboard related issues use |
Is that behaviour documented somewhere in this project? It wasn't clear to me that headless was the default (always had my simulator running), or that running in the simulator had that restriction. Even if it's documented here, but just links to EarlGrey's docs, as long as there is an easy trail for a lowly react app developer to follow. |
Closing the issue, reopen if docs still don't satisfy you, or even better, create a PR. |
For usage help, ask a question on Stack Overflow with the
detox
tag. The issues section of the project is meant for opening bug reports and enhancement requests of Detox. We use it to automatically track the change logIMPORTANT: Use search before opening an issue. Duplicate issues will simply be closed.
Description
On the iOS simulator (iPhone 6), if I have
Connect Hardware Keyboard
checked, my tests on.typeText('...')
because the software keyboard fails to open.Steps to Reproduce
await element(by.id('your-test-id-from-above')).typeText('test')
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
log
The text was updated successfully, but these errors were encountered: