Scenario | Brand | Country | Test scenario | Pre- condition | How to execute(step-by-step) | Expect Result |
1 | BK | ES | Check if the Loyalty Id is returned on getOrder endpoint for drive-thru orders | Place an drive-thru order Get the integration token that the store is part of
| Access the partners-api swagger and authenticate with the correct token Make a getOrder call with the order id Check if the loyalty id is returned.
| The loyalty id must be returned
|
2 | BK | ES | Check if the Loyalty Id is returned on getOrder endpoint for delivery orders | Place an delivery order Get the integration token that the store is part of
| Access the partners-api swagger and authenticate with the correct token Make a getOrder call with the order id Check if the loyalty id is returned.
| The loyalty id must be returned
|
3 | BK | ES | Check if getOrder works if the Loyalty Id is not saved in database | Access the dynamo db
| Access the order entity on: e.g.: aws-rbi-dev-plk. On "cart" object remove the rbiUserLoyaltyId. Access the partners-api swagger and authenticate with the correct token Make a getOrder call with the order id Check if the loyalty id is not returned and the endpoint returns other fields as expected.
| The loyalty id must not be returned The endpoint has to work normally
|
4 | BK | ES | Check if getOrder works if the Loyalty Id is saved as an empty string | Access the dynamo db
| Access the order entity on: e.g.: aws-rbi-dev-plk. On "cart" object make the rbiUserLoyaltyId as empty string. Access the partners-api swagger and authenticate with the correct token Make a getOrder call with the order id Check if the loyalty id is an empty string and the endpoint returns other fields as expected.
| The loyalty id must be returned as an empty string The endpoint has to work normally
|
5 | BK | ES | Check if documetation reflects the changes | | Access the partners-api documentation and check if the Loyalty Id field is correctly documented
| The LoyaltyId field must be correctly documented in Get Order section
|
6 | BK | ES | Check if the Loyalty Id returned on getOrder endpoint match with the correct user Loyalty Id | Place an drive-thru order Get the integration token that the store is part of Access the admin-app and check copy the loyalty id of the user
| Access the partners-api swagger and authenticate with the correct token Make a getOrder call with the order id Check if the loyalty ID matches the one in the admin app
| The loyalty id must be returned The endpoint has to work normally
|