I noticed how I don't need to run any ios simulato...
# compose
a
I noticed how I don't need to run any ios simulators to run ios compose tests. How does that work? is the result the same as running the tests on jvm? The reason why I am asking is because I have a bug on iOS and I cannot figure out how to write a failing test for it. I suspect that running the ios test are not really different than running the jvm tests, and as a result I cannot really test this.
p
I've also wondered about this. I've hit scenarios where room for example behaves differently on iOS and it would be nice to test flows on iOS but I'm not sure it is materially different. I recently got test balloon up and running so my tests are back in commonTest (I used to only write jvmTest). I have had some behavior differences so there is something different. I just don't know what exactly or how much I should trust that
👍 1
i
If we're talking about API from
ui-test
module, non-android tests are based on "mock" platform that doesn't interact with platform views. I'd say it should cover ~80% of cases. It still not the same between jvm and ios due to involved expect/actuals, but it's quite similar, yes. We're discussing internally how to change that, but there are number of issues here, so don't expect it in near future. For real e2e tests - selenium-like tests work, so it's a way to go for now. Unfortunately this part is not covered in our documentation yet 🚧 PS sorry for gaps here and there, just sharing state of things
a
@Ivan Matkov I believe having it working as it is right now is very useful (headless mode), but I still need to be able to run my tests on the simulator, as I want to ensure it is running on the real OS. is it possible to do this now? I don't understand what you mean by selenium-like tests
Also, I need to be able to reproduce bugs via tests that happens on specific targets (in this case iOS). I wasnt able to reproduce the bug I had on iOS via a test, even though it was 100% reproducible on the simulator
i
I believe having it working as it is right now is very useful (headless mode)
Yeah for sure it will remain the option
but I still need to be able to run my tests on the simulator, as I want to ensure it is running on the real OS.
is it possible to do this now?
With
ui-test
module - unfortunately no
I don't understand what you mean by selenium-like tests
Basically cross platforms e2e test frameworks based on a11y locators should work (https://maestro.dev/ or https://appium.io/). I'll try to find some more detailed refs/examples, but as I mentioned, proper documentation here is still in TODO list
a
Ok now I got what you mean. Thanks Ivan