OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/features/reportings/reporting_administration.fe...

127 lines
5.1 KiB

#-- 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: General Reporting adminstration
As a ChiliProject Admin
I want to perform CRUD operations on reportings.
Background:
Given I am logged in as "admin"
Given there is 1 project with the following:
| Name | Santas Project |
Given there is 1 project with the following:
| Name | World Domination |
Given there is 1 project with the following:
| Name | How to stay sane and drink lemonade |
@javascript
Scenario: Creating a reporting
When I go to the page of the project called "Santas Project"
And I toggle the "Timelines" submenu
And I click on "Status reportings"
And I click on "New reporting"
And I should see "Reports to project"
When I select "World Domination" from "Reports to project"
And I press "Create" within "#content"
Then I should see "Successful creation."
And I should see "World Domination"
@javascript
Scenario: Creating a reporting when there is a reporting already present
Given there are the following reportings:
| Project | Reporting To Project | Reported Project Status Comment |
| Santas Project | World Domination | Hallo Junge |
When I go to the page of the project called "Santas Project"
And I toggle the "Timelines" submenu
And I click on "Status reportings"
And I click on "New reporting"
And I should see "Reports to project"
When I select "How to stay sane and drink lemonade" from "Reports to project"
And I press "Create" within "#content"
Then I should see "Successful creation."
And I should see "World Domination"
And I should see "How to stay sane and drink lemonade"
Scenario: Editing a reporting
Given there are the following reportings:
| Project | Reporting To Project | Reported Project Status Comment |
| Santas Project | World Domination | Hallo Junge |
When I go to the page of the project called "Santas Project"
And I toggle the "Timelines" submenu
And I click on "Status reportings"
Then I should see "World Domination"
And I should see "Hallo Junge"
When I follow "Edit status for project: World Domination"
Then I should see "Status comment:"
And I should see "Project status:"
When I fill in "So'n Feuerball" for "Status comment"
And I click on "Save"
Then I should see "Successful update."
And I should see "So'n Feuerball"
Scenario: Editing a reporting with another reporting present
Given there is 1 project with the following:
| Name | Careful Boy |
And there are the following reportings:
| Project | Reporting To Project | Reported Project Status Comment |
| Santas Project | World Domination | Hallo Junge |
| Santas Project | Careful Boy | Don't be a-gamblin' |
When I go to the page of the project called "Santas Project"
And I toggle the "Timelines" submenu
And I click on "Status reportings"
Then I should see "World Domination"
And I should see "Hallo Junge"
And I should see "Careful Boy"
And I should see "Don't be a-gamblin'"
When I follow "Edit status for project: Careful Boy"
And I fill in "So'n Feuerball" for "Status comment"
And I click on "Save"
Then I should see "Successful update."
And I should see "Careful Boy"
And I should see "So'n Feuerball"
And I should see "World Domination"
And I should see "Hallo Junge"
Scenario: Deleting a reporting with another reporting present
Given there are the following reportings:
| Project | Reporting To Project | Reported Project Status Comment |
| Santas Project | World Domination | Hallo Junge |
When I go to the page of the project called "Santas Project"
And I toggle the "Timelines" submenu
And I click on "Status reportings"
And I follow "Delete status reported to project: World Domination"
And I click on "Delete"
Then I should see "Successful deletion."
And I should not see "World Domination"
And I should not see "Hallo Junge"
Scenario: Not confirming Delete
Given there are the following reportings:
| Project | Reporting To Project | Reported Project Status Comment |
| Santas Project | World Domination | Hallo Junge |
When I go to the page of the project called "Santas Project"
And I toggle the "Timelines" submenu
And I click on "Status reportings"
And I click on "Delete"
And I click on "Cancel"
Then I should not see "Successful deletion."
And I should see "World Domination"
And I should see "Hallo Junge"