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

Commit 534d871f authored by Hasib Prince's avatar Hasib Prince
Browse files

test: improved the logic of script

parent 622bf491
Loading
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
appId: ${APP_ID}
env:
  NUMBER_OF_MAX_SCROLL: 5
---
- evalScript: ${output.app_index = 0}
- evalScript: ${output.app_index = 0, output.number_of_scroll = 0}
- repeat:
    while:
      true: ${output.app_index < NUMBER_OF_INSTALL}
      true: ${output.app_index < NUMBER_OF_INSTALL && output.number_of_scroll < NUMBER_OF_MAX_SCROLL}
    commands:
      - tapOn:
          text: INSTALL
@@ -14,4 +16,5 @@ appId: ${APP_ID}
          when:
            notVisible: INSTALL
          commands:
            - evalScript: ${output.number_of_scroll++}
            - scroll
+3 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ appId: ${APP_ID}
env:
  SEARCH_STRING: "notes"
  SEARCH_SUGGESTION_STRING: "notes app"
  NUMBER_OF_MAX_CATEGORY: 8
  APP_INSTALL_CATEGORY_PAGE: 80
  APP_INSTALL_PER_CATEGORY: 10
  APP_INSTALL_SEARCH_PAGE: 20
@@ -34,7 +35,7 @@ env:
- evalScript: ${output.app_install = 0; output.category_index = 0}
- repeat:
    while:
      true: ${output.app_install < APP_INSTALL_CATEGORY_PAGE}
      true: ${output.app_install < APP_INSTALL_CATEGORY_PAGE && output.category_index < NUMBER_OF_MAX_CATEGORY}
    commands:
      - tapOn:
          id: "${APP_ID}:id/category_title"
@@ -52,7 +53,7 @@ env:
- inputText: ${SEARCH_STRING}
- tapOn:
    text: ${SEARCH_SUGGESTION_STRING}
- evalScript: ${output.app_install = 0; output.app_index = 0;}
- evalScript: ${output.app_install = 0;}
- runFlow:
    file: apps-install-flow.yaml
    env: