| Step Description | Expected result |
|---|---|
| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly. No records found in the table |
| Click on the button “Add new API access” | New API access Page is displayed correctly |
| * Fill the form with following data * Click on “Generate client secret & Save” button |
* The message “The API access and Client secret has been generated sucessfully” is displayed * The message “Client secret: " is displayed |
| Go to Orders > Orders page | Orders page is displayed correctly Page title = Orders |
| Filter the orders table by the customer name | 1 record is found |
| Fetch the ID of the order in the list as {orderId} | orderId > 0 |
| Go to Customers > Addresses page | Addresses page is displayed correctly page title = Addresses |
| Filter list by created address | 1 record is found |
| go to the edit address page | Page title = Editing address |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “addressAlias” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “addressAlias” has the updated value. |
| Reload the edit page | Check that the “firstName” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “firstName” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “firstName” has the updated value. |
| Reload the edit page | Check that the “firstName” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “lastName” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “lastName” has the updated value. |
| Reload the edit page | Check that the “lastName” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “address” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “address” has the updated value. |
| Reload the edit page | Check that the “address” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “address2” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “address2” has the updated value. |
| Reload the edit page | Check that the “address2” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “city” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “city” has the updated value. |
| Reload the edit page | Check that the “city” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “postCode” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “postCode” has the updated value. |
| Reload the edit page | Check that the “address2” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “countryId” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “postCode” has the updated value. |
| Reload the edit page | Check that the “countryId” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “homePhone” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “homePhone” has the updated value. |
| Reload the edit page | Check that the “homePhone” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “mobilePhone” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “mobilePhone” has the updated value. |
| Reload the edit page | Check that the “mobilePhone” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “company” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “company” has the updated value. |
| Reload the edit page | Check that the “company” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “vatNumber” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “vatNumber” has the updated value. |
| Reload the edit page | Check that the “vatNumber” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “other” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “other” has the updated value. |
| Reload the edit page | Check that the “other” is updated Check that the other inputs are the same |
| Request with method PATCH the endpoint “https://[url of your shop]/admin-api/addresses/orders/{idOrder}” for updating the field “dni” where {idOrder} is the previous ID get | The HTTP code is 200. The return data has multiples keys. The key “dni” has the updated value. |
| Reload the edit page | Check that the “dni” is updated Check that the other inputs are the same |
| Request with the method DELETE the endpoint “[https://url of your shop/admin-api/addresses/{addressId}” to delete the created address | The HTTP code is 204. |
| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly. 1 record found in the table |
| On the first row, click on the button “Three points” | The dropdown is displayed |
| Click on the Delete Button in the dropdown | A modal appeared |
| Click on the Confirm Button in the modal | The message “Successful deletion” is displayed No records found in the table |