ref: master
plugins/shopping_cart/features/delivery_admin.feature
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
Feature: delivery administration As an enterprise's administrator I want to create delivery methods In order to allow my customer to choose which delivery they want Background: Given "ShoppingCart" plugin is enabled And "Delivery" plugin is enabled And the following users | login | name | | moe | Moe | And the following enterprise | identifier | name | owner | | moes-tavern | Moes Tavern | moe | And the shopping basket is enabled on "Moes Tavern" And "Moe" is admin of "Moes Tavern" And I am logged in as "moe" And I go to moes-tavern's control panel @selenium Scenario: enable delivery Given I follow "Shopping basket" When I check "Enable shopping basket" Then I should see "Deliveries or pickups" @selenium Scenario: disable delivery Given I follow "Shopping basket" When I uncheck "Enable shopping basket" Then I should not see "Deliveries or pickups" @selenium Scenario: create new deliver Given I follow "Shopping basket" And I check "Enable shopping basket" And I follow "New delivery or pickup" And I select "Deliver" from "Type" And I fill in "Name" with "Bike" And I fill in "Fixed cost" with "8.00" And I fill in "delivery_method_free_over_price" with "35.50" When I press "Add" Then I should see "Bike" within ".delivery-method" @selenium Scenario: create new pickup Given I follow "Shopping basket" And I check "Enable shopping basket" And I follow "New delivery or pickup" And I select "Pickup" from "Type" And I fill in "Name" with "Bar" And I fill in "Fixed cost" with "0.00" When I press "Add" Then I should see "Bar" @selenium Scenario: remove delivery Given I follow "Shopping basket" And I check "Enable shopping basket" And I follow "New delivery or pickup" And I fill in "Name" with "Bike" When I press "Add" Then I should see "Bike" And I follow "Remove" within ".delivery-method" When I confirm the browser dialog Then I should not see "Bike" @selenium Scenario: edit delivery Given I follow "Shopping basket" And I check "Enable shopping basket" And I follow "New delivery or pickup" And I fill in "Name" with "Bike" When I press "Add" Then I should see "Bike" And I follow "Edit" within ".delivery-method" And I fill in "Name" with "Car" When I press "Save" Then I should not see "Bike" Then I should see "Car" |