FormidableLabs / FormidableLabs/react-native-owl

Unable to find or interact with any elements on Android

Open
#163 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
694
Forks
27
PR merge metrics
No merged PRs in 30d

Description

I ran your example app with no problem on Android.

On the other end our mature app does not work as expected.
`takeScreenshot` works as expected but every interacting API method does nothing and hangs.
`toExist` and `press` do not find element. I'm 100% certain I have the right testID. We also have e2e tests with appium having no issues finding those elements by test ids.

We are on "react-native": "0.71.8"

Is there something I'm missing?

```
const { press, takeScreenshot } = require('react-native-owl');

const setDelay = (delay) => new Promise((resolve) => setTimeout(resolve, delay));

jest.setTimeout(50000);

describe('App.tsx', () => {
it('presses a button, then takes a screenshot', async () => {
await setDelay(5000);
await press('ButtonSignIn');
// never reaches this
const screen = await takeScreenshot('afterButtonPress');
expect(screen).toMatchBaseline();
});
});

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.