Skip to content
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

Linking.openURL() is not working with detox tests #4472

Open
2 tasks done
gosha212 opened this issue Apr 25, 2024 · 0 comments
Open
2 tasks done

Linking.openURL() is not working with detox tests #4472

gosha212 opened this issue Apr 25, 2024 · 0 comments

Comments

@gosha212
Copy link
Contributor

What happened?

Linking.openURL() doesn't work well in two cases:

When using Pressable:
<Pressable onPress={ async () => { await Linking.openURL('https://www.wix.com'); }} testID='open-web-browser-button'> <Text> Open web browser </Text> </Pressable>
This will cause the test to hang with a message:
The app is busy with the following tasks: • There are enqueued timers.

When using Wix UILib button component (instead of the react native one):
The test will hang with the following message:
UI elements are busy: - Reason: Animations running on screen.

What was the expected behaviour?

No response

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.20
React Native version: 0.73.2
Has Fabric (React Native's new rendering system) enabled: (no)
Node version: 20
Device model: Emulator
Android version: 29
Test-runner (select one): jest

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste your device.log here!

More data, please!

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant