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/issues/export.feature

46 lines
1.6 KiB

Feature: Exporting issues
Background:
Given there is 1 user with the following:
| login | bob |
And there is a role "member"
And the role "member" may have the following rights:
| view_issues |
And there is 1 project with the following:
| name | project1 |
| identifier | project1 |
And the user "bob" is a "member" in the project "project1"
And the user "bob" has 1 issue with the following:
| subject | Some Issue |
And I am already logged in as "bob"
Scenario: No export links on project issues index if user has no "export_issues" permission
When I go to the issues index page of the project called "project1"
Then I should not see "CSV"
And I should not see "PDF"
Scenario: Export links on project issues index if user has the "export_issues" permission
Given the role "member" may have the following rights:
| view_issues |
| export_issues |
When I go to the issues index page of the project called "project1"
Then I should see "CSV" within ".other-formats"
And I should see "PDF" within ".other-formats"
Scenario: No export links on global issues index if user has no "export_issues" permission
When I go to the global index page of issues
Then I should not see "CSV"
And I should not see "PDF"
Scenario: Export links on global issues index if user has the "export_issues" permission
Given the role "member" may have the following rights:
| view_issues |
| export_issues |
When I go to the global index page of issues
Then I should see "CSV" within ".other-formats"
And I should see "PDF" within ".other-formats"