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.
63 lines
2.5 KiB
63 lines
2.5 KiB
Feature: Permission View Own hourly and cost rates
|
|
|
|
@javascript
|
|
Scenario: Users that by set permission are only allowed to see their own rates, can not see the rates of others.
|
|
Given there is a standard cost control project named "Standard Project"
|
|
And the role "Supplier" may have the following rights:
|
|
| view_own_hourly_rate |
|
|
| view_issues |
|
|
| view_own_time_entries |
|
|
| view_own_cost_entries |
|
|
| view_cost_rates |
|
|
| log_costs |
|
|
And there is 1 User with:
|
|
| Login | testuser |
|
|
| Firstname | Bob |
|
|
| Lastname | Bobbit |
|
|
| default rate | 10.00 |
|
|
And the user "testuser" is a "Supplier" in the project "Standard Project"
|
|
And the project "Standard Project" has 1 issue with the following:
|
|
| subject | test_issue |
|
|
And the issue "test_issue" has 1 time entry with the following:
|
|
| hours | 1.00 |
|
|
| user | testuser |
|
|
And there is 1 cost type with the following:
|
|
| name | Translation |
|
|
| cost rate | 7.00 |
|
|
And the issue "test_issue" has 1 cost entry with the following:
|
|
| units | 2.00 |
|
|
| user | testuser |
|
|
| cost type | Translation |
|
|
And the user "manager" has:
|
|
| hourly rate | 11.00 |
|
|
And the issue "test_issue" has 1 time entry with the following:
|
|
| hours | 3.00 |
|
|
| user | manager |
|
|
And the issue "test_issue" has 1 cost entry with the following:
|
|
| units | 5.00 |
|
|
| user | manager |
|
|
| cost type | Translation |
|
|
And I am already logged in as "testuser"
|
|
And I am on the page for the issue "test_issue"
|
|
Then I should see "1.00 hour"
|
|
And I should see "2.0 Translations"
|
|
And I should see "24.00 EUR"
|
|
And I should not see "33.00 EUR" # labour costs only of Manager
|
|
And I should not see "35.00 EUR" # material costs only of Manager
|
|
And I should not see "43.00 EUR" # labour costs of me and Manager
|
|
And I should not see "49.00 EUR" # material costs of me and Manager
|
|
And I am on the issues page for the project called "Standard Project"
|
|
And I toggle the Options fieldset
|
|
And I select to see columns
|
|
| Overall costs |
|
|
| Labor costs |
|
|
| Unit costs |
|
|
And I follow "Apply"
|
|
Then I should see "24.00 EUR"
|
|
And I should see "10.00 EUR"
|
|
And I should see "14.00 EUR"
|
|
And I should not see "33.00 EUR" # labour costs only of Manager
|
|
And I should not see "35.00 EUR" # material costs only of Manager
|
|
And I should not see "43.00 EUR" # labour costs of me and Manager
|
|
And I should not see "49.00 EUR" # material costs of me and Manager
|
|
|
|
|