Is it possible to trigger the app to run specific JS during tests? #968
-
Currently trying out Maestro to potentially migrate from a fairly extensive Detox suite that has been a massive pain to implement and maintain. As part of that we run a lot of "setup" when starting an E2E test, depending on the test. For example we do things like:
These are done by running JS setup files that update Redux and context for what's needed. We do this by sending a "signal" via notification to the app which tells it what to run, but Maestro right now doesn't support notifications. I'm wondering if it's possible to do the same with Maestro. I've seen the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @RhyG! Yes, |
Beta Was this translation helpful? Give feedback.
Hi @RhyG! Yes,
runScript
supports conditional execution where you can pass for example variables into your JS file to do what you want at the right time - more information here. If this does not solve your use case, please file a feature request here. Thanks!