Contents

This page comes from an earlier version of the Openproject docs (commit 3e6c0258). See the latest Openproject docs.

Type Administration

As an OpenProject Admin I want to configure which types are available So that I can support my teams with useful settings while still controlling the total number of available types So that my teams can work effectively

Background:

  • Given there are the following types:
    NameIs MilestoneIn aggregationIs Standard
    Phasefalsetruefalse
    Milestonetruetruefalse
    Minor Phasefalsefalsefalse
    Minor Milestonetruefalsefalse
    Standardtruefalsetrue
  • And I am already admin

Scenario: The admin may create a type

  • When I go to the global index page of types
  • And I follow "New type"
  • And I fill in "New Phase" for "Name"
  • And I press "Create"
  • Then the flash message should contain "Successful creation."
  • When I go to the global index page of types
  • And I should see the "New Phase" type

Scenario: Nice error messages help fixing them

  • When I go to the global index page of types
  • And I follow "New type"
  • And I fill in "" for "Name"
  • And I press "Create"
  • Then I should see an error explanation stating "Name can't be blank"

Scenario: The admin may edit a type

  • When I go to the edit page of the type called "Phase"
  • And I fill in "Updated Phase" for "Name"
  • And I press "Save"
  • Then the flash message should contain "Successful update."
  • When I go to the global index page of types
  • Then I should see the "Updated Phase" type

Scenario: The admin may delete a type

  • When I go to the global index page of types
  • And I follow "Delete Minor Phase"
  • Then the flash message should contain "Successful deletion."
  • And I should not see the "Minor Phase" type

Source: features/types/types_adminstration.feature at commit 3e6c0258, Openproject (GPL license).