Retire item
Scenario Outline: Retire
@javascript @personas
- Given I am Matti
- And I pick a <object> that is in stock and that the current inventory pool is the owner of
- Then I can retire this <object> if I give a reason for retiring
- And the newly retired <object> immediately disappears from the inventory list
Examples:
Scenario Outline: Preventing retiring an object that isn't in stock
@javascript @personas
- Given I am Mike
- And I pick a <object> that is not in stock
- Then I cannot retire such a <object>
Examples:
Scenario Outline: Preventing retiring an object I'm not the owner of
@javascript @personas
- Given I am Matti
- And I pick a <object> the current inventory pool is not the owner of
- Then I cannot retire such a <object>
Examples:
Scenario Outline: Error when trying to retire without giving a reason
@javascript @personas
- Given I am Matti
- And I pick a <object> that is in stock and that the current inventory pool is the owner of
- And I don't give any reason for retiring this item
- And the <object> is not retired
Examples:
Scenario Outline: Unretiring an item
@javascript @personas
- Given I am Mike
- And I pick a retired <object> that the current inventory pool is the owner of
- And I go to this <object>'s edit page
- When I unretire this <object>
- And I fill in the supply category
- And I save
- Then I am redirected to the inventory list
- And this <object> is not retired
Examples:
Scenario Outline: How retired items are displayed in a responsible department/inventory pool
@personas
- Given I am Mike
- And I pick a retired <object> that the current inventory pool is responsible for but not the owner of
- Then I go to this <object>'s edit page
Examples:
Source: features/manage/inventory/retire_item.feature at commit eb240d9e, Leihs (GPL license).