medic / cht-release-testing

Used to track release testing on medic projects
2 stars 0 forks source link

Support remote first time log in #178

Open ngaruko opened 3 years ago

ngaruko commented 3 years ago

User: Restricted Site: Instance(gamma, gamma-b, cht) Platform: Mobile App Test Steps: Steps for test

1. Add `token_login.app_url` (use actual CHT server, the server used here is just an example) and `token_login` to `app_settings.json` ``` "token_login.app_url": **_"https://cht-server.medicmobile.org"_**, "token_login": { "enabled": true, "translation_key": "sms.token.login.help" } ``` 2. Open Medic-android with an IDE of your choice and add `app-host` to medic-android (testing with unbranded flavour) `_**cht-server.medicmobile.org**_` 3. In cht web app, a user with ` Enable login via SMS link` checked. ![image](https://user-images.githubusercontent.com/6979995/87911466-cb80c680-cabf-11ea-8158-0f227137de02.png) 4. A message is generated and can be retrieved from `outgoing messages > due` in the admin portal(`/admin/#/message-queue/due`) if no gateway is set up to send real message - 5. Send the message to the phone with any other messaging app. 6. On the phone, press on the sent `url` 7. User is prompted to select between default browser and medic (if the app is installed) or just open the app in the browser if the app was not installed (or the `app-host` not provided. ![image](https://user-images.githubusercontent.com/6979995/87911394-a7bd8080-cabf-11ea-9337-af09d828ddd8.png) 8. Select Medic android Expected Result: User should be logged in the place to which the admin has assigned in step 3
ngaruko commented 3 years ago

Tested for happy paths, wrong/compromised token, revoked token, newly generated token and expired token

ngaruko commented 2 years ago

Testing android v1.0

  1. Add user form has the Enable login via SMS link tick box & once selected, the phone number becomes compulsory

    image
  2. SMS login enabled for user, with option to disable or generate token:

    image
  3. Message with link generated

    image
  4. When link selected, app login automatically

    image
ngaruko commented 2 years ago
  1. Enable remote login in admin portal image

    2 . Url created in outgoing messages :

    image
  2. Url opens cht android image image