[Expo] All commands that deal with testID elements do not work
See original GitHub issueHey-hey
Thanks for such a promising tool. Installation & setup was pretty easy.
Taking & comparing screenshots work flawlessly, but any action that needs element(press
, longPress
, changeText
, toExist
) matching throws error Failed: "Element not found: ZZZZZZZ"
.
Relevant for both iOS & Android, release build(can’t try debug as i’m using Expo custom dev client). What could be the problem and how to debug it?
Issue Analytics
- State:
- Created a year ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
Unable to find the element with data-testid - Stack Overflow
I am following the docs for react-testing-library to find if the element with data-testid attribute is rendered or not.
Read more >Testing Expo Apps with Detox and react-native-testing-library
To fix this, within the simulator press command-K to show the keyboard. Then rerun the test. Once the tests are able to find...
Read more >The Complete Guide to Testing React Native App Using Cypress
Pro tip: use utility start-server-and-test to run Expo and open Cypress with a single command. The utility will even close Expo when Cypress ......
Read more >React Native end-to-end testing with Detox - LogRocket Blog
Therefore, an end-to-end test includes all the stages of an ... If the command above still doesn't work, check if you replaced all...
Read more >Testing your React Component with React Testing Library
We also can find elements on the DOM with unique IDs for specific elements. If you wish to use test-id, you have to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks both. I’ll have to look into this further once I get back on my laptop, as in travelling at the moment.
There are example projects at https://github.com/manosim/react-native-owl-demo and in the example directory of this repo that both demonstrate the functionality, so I’m not sure what’s causing the issue. Perhaps you can spot some omission from the setup docs that is causing the problem?
I’ll try what you suggested @simonedif and create a new RN 0.68.2 project and see if I encounter the same issue.
Thanks for the hint. Could You please show full
babel.config.js
source?'module:metro-react-native-babel-preset'
is the part of already existing'babel-preset-expo'
preset, so it conflicts for me if added after expo preset.