Contents

Edit order

Scenario: View suspended status of a user

@javascript @personas

  • Given I am Pius
  • When I navigate to the open orders
  • And I open a take back for a suspended user
  • Then I see the note 'Suspended!' next to their name

Scenario: Prevent 'approve anyway' for group managers

@javascript @personas

  • Given I am Andi
  • And an order contains overbooked models
  • When I edit the order
  • And I approve the order
  • Then I cannot force the order to be approved

Scenario: No empty orders in the order list

@personas @javascript

  • Given I am Pius
  • Then I don't see empty orders in the list of orders

Scenario: Visible tabs

@personas

  • Given I am Andi
  • When I am listing the orders
  • Then I see the tabs "All, Pending, Approved, Rejected"

Scenario: Definition of orders requiring verification

@personas

  • Given a verifiable order exists
  • Then this order was created by a user that is in a group whose orders require verification
  • And this order contains a model from a group whose orders require verification

Scenario: Show all orders - tab 'All orders'

@javascript @personas @problematic

  • Given I am Andi
  • And I am in an inventory pool with verifiable orders
  • And I am listing the orders
  • When I view the tab "All"
  • Then I see all verifiable orders
  • And these orders are ordered by creation date

Scenario: Displaying the tab of pending orders

@javascript @browser @personas @problematic

  • Given I am Andi
  • And I am in an inventory pool with verifiable orders
  • And I am listing the orders
  • When I view the tab "Pending"
  • Then I see all pending verifiable orders
  • Then I see who placed this order on the order line and can view a popup with user details
  • And I see the order's creation date on the order line
  • And I see the number of items on the order line and can view a popup containing the items ordered
  • And I see the duration of the order on the order line
  • And I see the purpose on the order line
  • And I can approve the order
  • And I can reject the order
  • And I can edit the order
  • And I cannot hand over orders

Scenario: Displaying the tab of approved orders

@javascript @browser @personas @problematic

  • Given I am Andi
  • And I am in an inventory pool with verifiable orders
  • And I am listing the orders
  • When I view the tab "Approved"
  • Then I see all verified and approved orders
  • And I see who placed this order on the order line and can view a popup with user details
  • And I see the order's creation date on the order line
  • And I see the number of items on the order line and can view a popup containing the items ordered
  • And I see the duration of the order on the order line
  • And I see the order's status on the order line
  • And I edit an already approved order
  • And I am directed to the hand over view
  • But I cannot hand over

Scenario: Displaying the tab of rejected orders

@javascript @browser @personas @problematic

  • Given I am Andi
  • And I am in an inventory pool with verifiable orders
  • And I am listing the orders
  • When I view the tab "Rejected"
  • Then I see all verifiable rejected orders
  • And I see who placed this order on the order line and can view a popup with user details
  • And I see the order's creation date on the order line
  • And I see the number of items on the order line and can view a popup containing the items ordered
  • And I see the duration of the order on the order line
  • And I see the order's status on the order line

Scenario: Remove filter that shows orders to be verified

@javascript @personas

  • Given I am Andi
  • And I am in an inventory pool with verifiable orders
  • And I am listing the orders
  • Then I see all verifiable orders
  • When I uncheck the filter "To be verified"
  • Then I see orders placed by users in groups requiring verification

Scenario: Reset order that is already approved

@javascript @browser @personas @problematic

  • Given I am Andi
  • And I am in an inventory pool with verifiable orders
  • And I am listing the orders
  • When I view the tab "Approved"
  • And I edit an already approved order
  • Then I am directed to the hand over view
  • And I can add models
  • And I can add options
  • But I cannot assign items
  • And I cannot hand over

Source: features/manage/order/manage_orders.feature at commit eb240d9e, Leihs (GPL license).