config:
  app: com.google.android.calculator

setup:
  - terminate_app

teardown:
  - terminate_app

tests:
  - name: Clear app data resets calculator
    steps:
      - launch_app
      - tap: "5"
      - tap: "+"
      - tap: "3"
      - tap: "="
      - verify_screen: "Result shows 8"
      - clear_app_data
      - launch_app
      - verify_screen: "Calculator in fresh state, no previous calculation"

  - name: Revoke permissions succeeds
    steps:
      - revoke_permissions
      - launch_app
      - verify_screen: "Calculator app launched"
