Add comments for iOS

This commit is contained in:
Benoit Marty
2023-01-13 17:11:08 +01:00
committed by Benoit Marty
parent e6da460619
commit 5f5ec78e78
2 changed files with 22 additions and 0 deletions

View File

@@ -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)
<!--- END -->
@@ -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.

View File

@@ -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