kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
73 lines
2.8 KiB
73 lines
2.8 KiB
Feature: Cost Reports
|
|
|
|
Scenario: Anonymous user sees no costs
|
|
Given I am not logged in
|
|
And there is one Project with the following:
|
|
| Name | Test |
|
|
And there is one cost entry
|
|
And I am on the Cost Reports page for the project called Test
|
|
Then I should see "Login:"
|
|
And I should see "Password:"
|
|
|
|
Scenario: Admin user sees everything
|
|
Given I am admin
|
|
And there is only one project with the following:
|
|
| Name | Test |
|
|
And there is one cost type with the following:
|
|
| name | Translation |
|
|
And there is one cost entry with the following:
|
|
| units | 4242 |
|
|
And I am on the Cost Reports page for the project called Test
|
|
Then I should not see "No data to display"
|
|
And I should see "Translation"
|
|
And I should see "4242"
|
|
|
|
Scenario: User who can see own costs, ONLY sees own costs
|
|
Given I am not logged in
|
|
And there is only one project with the following:
|
|
| Name | Test |
|
|
And there is one User with the following:
|
|
| Login | bob |
|
|
| Firstname | Bob |
|
|
| Lastname | Bobbit |
|
|
And the user "Bob" is a "Developer" in the project "Test"
|
|
And the role "Developer" may have the following rights in project "Test":
|
|
| View own cost entries |
|
|
And there is only one cost type with the following:
|
|
| name | Translation |
|
|
And the user with login "Bob" has one cost entry
|
|
And there is 1 cost type with the following:
|
|
| name | Hidden Costs |
|
|
And the project "Test" has 2 cost entries with the following:
|
|
| units | 128128 |
|
|
And I am logged in as "bob"
|
|
And I am on the Cost Reports page for the project called Test
|
|
Then I should not see "No data to display"
|
|
And I should see "Translation"
|
|
And I should see "Bob Bobbit"
|
|
And I should not see "Hidden Costs"
|
|
And I should not see "128128"
|
|
And I should not see "Redmine Admin"
|
|
|
|
Scenario: User who can see own time entries, ONLY sees own time entries
|
|
Given I am not logged in
|
|
And there is only one project with the following:
|
|
| Name | Test |
|
|
And there is one User with the following:
|
|
| Login | bob |
|
|
| Firstname | Bob |
|
|
| Lastname | Bobbit |
|
|
| default rate | 20.0 |
|
|
And the user "Bob" is a "Developer" in the project "Test"
|
|
And the role "Developer" may have the following rights in project "Test":
|
|
| View own time entries |
|
|
And the user with login "Bob" has one time entry
|
|
And the project with name "Test" has 2 time entries with the following:
|
|
| hours | 11 |
|
|
And I am logged in as "bob"
|
|
And I am on the Cost Reports page for the project called Test
|
|
Then I should not see "No data to display"
|
|
And I should see "Bob Bobbit"
|
|
And I should not see "11"
|
|
And I should not see "220.0"
|
|
And I should not see "Redmine Admin"
|
|
|