-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.Developer Docs | ||
* xref:dev_environment.adoc[] | ||
* xref:extensions.adoc[] | ||
* xref:test_plan.adoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
= 🔭 Test plan | ||
|
||
== Initialize a new delivery | ||
|
||
- Go to the following URL to open the create delivery form page: | ||
http://example.com/deliveries/new (The domain should be changed to the one where Tololo is hosted in) | ||
|
||
image::delivery_form.png[] | ||
|
||
- Fill the details of the delivery through the form. | ||
|
||
== Change the state from `Init` to `Ready to pickup` | ||
|
||
- Click on the "Edit" button. | ||
image::edit_delivery.png[] | ||
- Change state to "In preparation", then save. | ||
- Click on the "Edit" button again. | ||
- Change state to "Ready to pickup", then save. | ||
|
||
== Authenticate Telegram user | ||
|
||
- The delivery person should send a message to the Tololo Telegram bot. The content of the message can be anything. | ||
- An access request will be sent to Tololo, then an admin will have to approve the user through the admin dashboard. The admin dashboard is in the following page: http://example.com/admin | ||
The default user is `admin`, and the default password is `test`. | ||
- In the dashboard, click the `Users` dropdown menu at the top of the page, then select `User`. Then, select `Read` to see a list of the users that the bot has interacted with. | ||
image::user_admin.png[] | ||
- Find the user you wish to approve, then click on the pencil button. In the following page, change the `status` field from `pending` to `allowed`. | ||
image::update_user.png[] | ||
- Click the `Save` button. | ||
|
||
== Pick delivery up through Telegram bot | ||
|
||
- Get the delivery display id. It will be shown in the delivery details page, after initializing the new delivery. | ||
image::display_id.png[] | ||
- Send the following command to the Telegram bot: `/new {display id}`. | ||
image::new_command.png[] | ||
- Share live location with bot. | ||
image::live_location.png[] | ||
|
||
== Mark delivery as done after delivering | ||
|
||
- Send the `/done` command, then select the option with the previous display id. | ||
image::done_command.png[] |