Contents

Categories

Background:

  • Given I am Mike
  • And I open the inventory

Scenario: Creating top-level categories

@javascript @personas

  • 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

@javascript @personas

  • 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

@javascript @personas

  • When I edit a category
  • And I change the name and the parents
  • And I save
  • Then the values are saved

Scenario: Deleting categories

@javascript @personas

  • 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

@javascript @personas @browser

  • When a category has models
  • Then it's not possible to delete the category

Scenario: Assigning models to a category

@javascript @browser @personas

  • 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

@javascript @browser @personas

  • 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

@javascript @browser @personas @problematic

  • 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

@javascript @browser @personas

  • 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

@personas

  • When I see the categories

Scenario: Creating categories

@javascript @personas @browser

  • 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

@personas @javascript @browser

  • 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).