mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.88k stars 281 forks source link

Simulator locks when running Maestro tests after setting notification permissions with applesimutils #2103

Open lazyniuk opened 1 month ago

lazyniuk commented 1 month ago

Is there an existing issue for this?

Steps to reproduce

  1. Boot the iOS simulator.
  2. Set notification permissions for the app using applesimutils: applesimutils --booted --bundle ${appId} --setPermissions notifications=YES
  3. Launch the app and run Maestro tests: maestro test <path_to_test_script>
  4. Observe that the simulator screen locks, and the Maestro tests fail.

Actual results

Expected results

About app

About environment

Maestro Version: 1.38.1 OS: Mac OS X OS Version: 14.7 Arch: aarch64 Java Version: 18 XCode Version: 15.4

Logs

Logs ``` ```

Maestro version

1.38.1

How did you install Maestro?

Homebrew

Anything else?

I found a workaround by handling notification permission in Maestro Script: Moved the notification permission handling into the Maestro test script using:

  tapOn:
    text: "Allow"
linear[bot] commented 1 month ago

MA-2373 Simulator locks when running Maestro tests after setting notification permissions with applesimutils