From 7b1b8ed328a3c7c897c4f27affca13a3e99c2a16 Mon Sep 17 00:00:00 2001 From: Andy D Date: Tue, 1 May 2018 15:39:07 -0400 Subject: [PATCH] add query behave --- features/orders.feature | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/features/orders.feature b/features/orders.feature index c6f665d..dddea34 100644 --- a/features/orders.feature +++ b/features/orders.feature @@ -8,7 +8,7 @@ Background: | id | customer_id | date | status | order_id | product_id | name | quantity | price | | 1 | 72 | 2017-12-24T09:29 | returned | 1 | 14 | cup | 2 | 10.12 | | 2 | 11 | 2018-01-25T09:30 | processing | 2 | 7 | box | 1 | 5.32 | - | 3 | 14 | 2018-02-25T09:30 | processing | 3 | 71 | laptop | 1 | 999.32 | + | 3 | 14 | 2018-02-25T09:30 | processing | 3 | 71 | phone | 1 | 549.99 | | 4 | 15 | 2018-02-27T09:30 | processing | 4 | 72 | laptop | 1 | 999.32 | Scenario: The server is running @@ -30,3 +30,16 @@ Scenario: List all items And I should see "7" in the item results And I should not see "leo" in the item results +Scenario: Query a customer + When I visit the "Home Page" + And I set the "order_customer_id" to "11" + And I press the "search" order button + Then I should see the message "Success" + And I should see "processing" in the order results + +Scenario: Query an item + When I visit the "Home Page" + And I set the "item_name" to "laptop" + And I press the "search" item button + Then I should see the message "Success" + And I should see "72" in the item results \ No newline at end of file