Categories
Background:
- Given I am Mike
- And I open the inventory
Scenario: Creating top-level categories
- When I open the category list
- And I create a new category
- And I give the category a name
- And I save
- Then the category has been created with the specified name
Scenario: Displaying categories
- When I open the category list
- Then I see the list of categories
- And the categories are ordered alphabetically
- And the first level is displayed on top
- And I can expand and collapse subcategories
Scenario: Edit categories
- When I edit a category
- And I change the name and the parents
- And I save
- Then the values are saved
Scenario: Deleting categories
- When a category has no models
- When I delete the category
- Then the category and all its aliases are removed from the tree
- And I see the list of categories
Scenario: Can't delete a category if it contains models
- When a category has models
- Then it's not possible to delete the category
Scenario: Assigning models to a category
- When I edit the model
- And I assign categories
- And I save
- Then I see the notice "
Model saved" - And the categories are assigned
Scenario: Removing categories
- When I edit the model
- And I remove one or more categories
- And I save
- Then the categories are removed and the model is saved
Scenario: Category search
- When I search for a category by name
- Then I find categories whose names contain the search term
- And the search results are ordered alphabetically
- And I can edit these categories
Scenario: Finding and deleting categories without models
- When I search for a category without models by name
- Then I find categories whose names contain the search term
- And I can delete these categories
Scenario: Categories
- When I see the categories
Scenario: Creating categories
- When I open the category list
- And I create a new category
- And I give the category a name
- And I define parent categories and their names
- And I add an image
- Then I can not add a second image
- When I save
- Then the category is created with the assigned name and parent categories
Scenario: Editing categories with an image
- Given there exists a category with an image
- And one edits this category
- When I remove the image
- And I add an image
- And I save
- Then the category was saved with the new image
Source: features/manage/inventory/categories.feature at commit eb240d9e, Leihs (GPL license).