Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 106e258b authored by Hasib Prince's avatar Hasib Prince
Browse files

test: install apps from search page through maestro

parent 2ed1ec39
Loading
Loading
Loading
Loading

apps-install-flow.yaml

0 → 100644
+17 −0
Original line number Diff line number Diff line
appId: foundation.e.apps.debug
---
- evalScript: ${output.app_index = 0}
- repeat:
    while:
      true: ${output.app_index < 10}
    commands:
      - tapOn:
          text: INSTALL
          id: "${APP_ID}:id/installButton"
          optional: true
      - evalScript: ${output.app_install++, output.app_index++}
      - runFlow:
          when:
            notVisible: INSTALL
          commands:
            - scroll
 No newline at end of file
+25 −6
Original line number Diff line number Diff line
@@ -21,15 +21,15 @@ appId: ${APP_ID}
- tapOn:
    id: "${APP_ID}:id/navigation_bar_item_icon_view"
    index: 1
- evalScript: ${output.category_index = 0; output.app_install = 1;}
- evalScript: ${output.app_install = 0; output.category_index = 0}
- repeat:
    while:
      true: ${output.app_install < 60}
      true: ${output.app_install < 80}
    commands:
      - tapOn:
          id: "${APP_ID}:id/category_title"
          index: ${output.category_index}
      - evalScript: ${output.app_index = 0}
      - evalScript: ${output.app_index = 0;}
      - repeat:
          while:
            true: ${output.app_index < 10}
@@ -38,15 +38,34 @@ appId: ${APP_ID}
                text: INSTALL
                id: "${APP_ID}:id/installButton"
                optional: true
            - evalScript: ${output.app_install++, output.app_index++}
            - evalScript: ${output.app_install++; output.app_index++;}
            - runFlow:
                when:
                  notVisible: INSTALL
                commands:
                  - scroll

      - evalScript: ${output.category_index = output.category_index + 1}
      - evalScript: ${output.category_index++}
      - back
- tapOn:
    text: Search
- inputText: "notes"
- tapOn:
    text: notes app
- runFlow:
    commands:
      - evalScript: ${output.app_install = 0; output.app_index = 0;}
      - repeat:
          while:
            true: ${output.app_index < 20;}
          commands:
            - tapOn:
                text: INSTALL
                id: "${APP_ID}:id/installButton"
                optional: true
            - evalScript: ${output.app_install++; output.app_index++;}
            - runFlow:
                when:
                  notVisible: INSTALL
                commands:
                  - scroll