From 5f5ec78e78ef48415a3d80fa1fc5170a673aa528 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 13 Jan 2023 17:11:08 +0100 Subject: [PATCH] Add comments for iOS --- .maestro/README.md | 14 ++++++++++++++ .maestro/tests/account/login.yaml | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/.maestro/README.md b/.maestro/README.md index b4f7ead266..15915cbf1c 100644 --- a/.maestro/README.md +++ b/.maestro/README.md @@ -9,6 +9,7 @@ To setup, please refer at [https://maestro.mobile.dev](https://maestro.mobile.de * [Output](#output) * [Write test](#write-test) * [CI](#ci) +* [iOS](#ios) * [Future](#future) @@ -49,6 +50,19 @@ Note that sometimes, this prevent running the test. So kill the `meastro studio` The CI is running maestro using the workflow `.github/worflow/maestro.yaml` and [maestro cloud](https://cloud.mobile.dev/). For now we are limited to 100 runs a month. Some GitHub secrets are used to be able to do that: `MAESTRO_CLOUD_API_KEY`, for now api key from `benoitm@element.io` maestro cloud account, and `MATRIX_MAESTRO_ACCOUNT_PASSWORD` which is the password of the account `@maestroelement:matrix.org`. This account contains a room `MyRoom` to be able to run the maestro test suite. +## iOS + +Need to install `idb-companion` first + +```shell +brew install idb-companion +``` + +Also: +https://github.com/mobile-dev-inc/maestro/issues/146 +https://github.com/mobile-dev-inc/maestro/issues/107 +So you have to change your input keyboard to QWERTY for it to work properly. + ## Future - run on Element X iOS. This is already working but it need some change on the test to make it works. Could pass a PLATFORM parameter to have unique test and use conditional test. diff --git a/.maestro/tests/account/login.yaml b/.maestro/tests/account/login.yaml index ceeff061a7..e3b07bc8ae 100644 --- a/.maestro/tests/account/login.yaml +++ b/.maestro/tests/account/login.yaml @@ -6,8 +6,16 @@ appId: ${APP_ID} - runFlow: changeServer.yaml - runFlow: ../assertions/assertLoginDisplayed.yaml - tapOn: "Email or username" +# ios +# - tapOn: +# id: "usernameTextField" +# index: 0 - inputText: ${USERNAME} - tapOn: "Password" +# iOS +#- tapOn: +# id: "passwordTextField" +# index: 0 - inputText: ${PASSWORD} - tapOn: "Continue" - runFlow: ../assertions/assertHomeDisplayed.yaml