parent
0e5c630939
commit
a901ff137e
@ -1,86 +0,0 @@ |
||||
#-- copyright |
||||
# OpenProject is a project management system. |
||||
# |
||||
# Copyright (C) 2012-2013 the OpenProject Team |
||||
# |
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU General Public License version 3. |
||||
# |
||||
# See doc/COPYRIGHT.rdoc for more details. |
||||
#++ |
||||
|
||||
Feature: Planning Element Management |
||||
As a Project Member |
||||
I want to view and edit planning elements within a project |
||||
So that I can plan the project's progress and report it to other projects |
||||
|
||||
Background: |
||||
Given there are the following types: |
||||
| Name | Is milestone | In aggregation | Is default | |
||||
| Phase | false | true | true | |
||||
| Milestone | true | true | true | |
||||
|
||||
And there are the following project types: |
||||
| Name | |
||||
| Standard Project | |
||||
| Extraordinary Project | |
||||
|
||||
And there is 1 user with: |
||||
| login | manager | |
||||
|
||||
And there is a role "manager" |
||||
And the role "manager" may have the following rights: |
||||
| view_timelines | |
||||
| view_planning_elements | |
||||
| edit_planning_elements | |
||||
| delete_planning_elements | |
||||
| view_work_packages | |
||||
| edit_work_packages | |
||||
| add_work_packages | |
||||
|
||||
And there is a project named "ecookbook" of type "Standard Project" |
||||
And I am working in project "ecookbook" |
||||
|
||||
And there is a default issuepriority with: |
||||
| name | Normal | |
||||
And there is a issuepriority with: |
||||
| name | High | |
||||
And there is a issuepriority with: |
||||
| name | Immediate | |
||||
|
||||
And there are the following issue status: |
||||
| name | is_closed | is_default | |
||||
| New | false | true | |
||||
|
||||
And the project uses the following modules: |
||||
| timelines | |
||||
|
||||
And the user "manager" is a "manager" |
||||
|
||||
And I am logged in as "manager" |
||||
|
||||
Scenario: The project manager gets 'No data to display' when there are no planning elements defined |
||||
When I go to the page of the project called "ecookbook" |
||||
And I toggle the "Timelines" submenu |
||||
And I follow "Planning elements" |
||||
Then I should see "No data to display" |
||||
And I should see "New planning element" |
||||
|
||||
Scenario: The project manager may create planning elements |
||||
When I go to the page of the project called "ecookbook" |
||||
And I toggle the "Timelines" submenu |
||||
And I follow "Planning elements" |
||||
And I follow "New planning element" |
||||
And I fill in "February" for "Subject" |
||||
And I fill in "2012-02-01" for "Start date" |
||||
And I fill in "2012-02-29" for "Due date" |
||||
And I submit the form by the "Create" button |
||||
Then I should see a notice flash stating "Successful creation." |
||||
And I should see "February" |
||||
|
||||
When I toggle the "Timelines" submenu |
||||
And I follow "Planning elements" |
||||
Then I should see a planning element named "February" |
||||
|
||||
When I follow "Activity" |
||||
Then I should see "Phase #1: February (New)" |
Loading…
Reference in new issue