maestro
maestro copied to clipboard
[1.33.1 and 1.34.1] Commands with unfound elements are not failing
Describe the bug
It seems like commands always return OK
To Reproduce Steps to reproduce the behavior, e.g.:
- Start the simulator
- Run
maestro studio
- Run the command:
tapOn: IDKANYMORE
or
assertVisible:
text: HAHAHAHAFUFUEWHFIUFEHIUEWHFEIUWHGUWEHIGEWUIHGEWIUH
and it marked it as Correct
Expected behavior
It should fail the test
Screenshots
Environment information (please complete the following information):
- Maestro version 1.33.1
- Platform:IOS
- Framework: React Native
- Device model and OS version: iPhone 15 Pro Max
- Simulator, emulator or physical device: Simulator (but also on CI in maestro cloud)
- Host [e.g. Mac M1, Windows, Linux, etc]: Mac M2
Additional Info
- Commented out my
.maestro/config.yaml
file as well to test
Same thing on v1.36.0, every command run in studio
completes successfully, even with id
and/or text
selectors that do not exist. When run with test
they fail as they should.