-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
delay
is not respected with runComposeUiTest
#4805
Comments
After spending hours trying to understand why the iOS tests were not running and getting stuck, I founded out that the issue is the `rememberRefreshKey()`. In the iOS tests, the `delay` calls are not being respected and since we have a 1-minute delay for the Task Screen, it is infinite looping. For now, we are simply removing it. A new issue was opened in the Compose Multiplatform project to get a better understanding of the behavior. JetBrains/compose-multiplatform#4805
Reproduced the on Desktop as well:
It makes sense because My undersanding of the behaviour: As I remember, it was possible to disable autoAdvance of time and to manage it manually by adding: I tried it now, and indeed it makes the test complete. But it seems I can't manage the time manually: Perhaps @m-sasha, Could you please take a look here? |
After spending hours trying to understand why the iOS tests were not running and getting stuck, I founded out that the issue is the `rememberRefreshKey()`. In the iOS tests, the `delay` calls are not being respected and since we have a 1-minute delay for the Task Screen, it is infinite looping. For now, we are simply removing it. A new issue was opened in the Compose Multiplatform project to get a better understanding of the behavior. JetBrains/compose-multiplatform#4805
Everything seems to be working as expected here (tested with
Using
|
Describe the bug
Currently, I'm having different behaviors with UI tests in Android and iOS: the
delay
calls are being respected in Android but ignored in iOS. I found this issue because my app has time-based information, and I created aLaunchedEffect
to re-trigger recompositions after 1 minute. This causes the test to loop with infinite recompositions until the test is manually stopped.The code works fine in Android and iOS for the debug/release builds, but fails on iOS during tests with
runComposeUiTest
.Affected platforms
Versions
To Reproduce
Steps to reproduce the behavior:
:iosSimulatorArm64Test
:connectedAndroidTest
Expected behavior
The iOS test should have the same result as the Android counterpart, and do not skip delays in UI-related tests.
iOS output
The text was updated successfully, but these errors were encountered: