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/grouping.feature

52 lines
2.4 KiB

Feature: Groups
@javascript
Scenario: We got some awesome default settings
Given there is a standard cost control project named "First Project"
And I am logged in as "controller"
And I am on the Cost Reports page for the project called "First Project"
Then I should see "Week (Spent)" within "select[@id='group_by_columns']"
And I should see "Issue" within "select[@id='group_by_rows']"
@javascript
Scenario: A click on clear removes all groups
Given there is a standard cost control project named "First Project"
And I am logged in as "controller"
And I am on the Cost Reports page for the project called "First Project"
And I group rows by "User"
And I group rows by "Cost type"
And I click on "Clear"
Then I should not see "Week (Spent)" within "select[@id='group_by_columns']"
And I should not see "Issue" within "select[@id='group_by_rows']"
And I should not see "User" within "select[@id='group_by_rows']"
And I should not see "Cost type" within "select[@id='group_by_rows']"
@javascript
Scenario: Groups can be added to either rows or columns
Given there is a standard cost control project named "First Project"
And I am logged in as "controller"
And I am on the Cost Reports page for the project called "First Project"
And I click on "Clear"
And I group columns by "Issue"
Then I should see "Issue" within "select[@id='group_by_columns']"
And I should not see "Issues" within "select[@id='group_by_container']"
When I group rows by "Project"
Then I should see "Project" within "select[@id='group_by_rows']"
And I should not see "Project" within "select[@id='group_by_container']"
@javascript
Scenario: Groups get restored after sending a query
Given there is a standard cost control project named "First Project"
And I am logged in as "controller"
And I am on the Cost Reports page for the project called "First Project"
And I click on "Clear"
And I group columns by "Issue"
And I group columns by "Project"
And I group rows by "User"
And I group rows by "Cost type"
And I send the query
Then I should see "Project" within "select[@id='group_by_columns']"
And I should see "Issue" within "select[@id='group_by_columns']"
And I should see "User" within "select[@id='group_by_rows']"
And I should see "Cost type" within "select[@id='group_by_rows']"