question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Expo] All commands that deal with testID elements do not work

See original GitHub issue

Hey-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:open
  • Created a year ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
robwalkercocommented, Jun 23, 2022

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.

1reaction
todoronecommented, Jul 5, 2022

Hi, in my Expo project I just added in the presets (babel.config.js) 'module:metro-react-native-babel-preset' and it’s works.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found