|
|
|
@ -12,14 +12,14 @@ Feature: Permission View Own hourly and cost rates |
|
|
|
|
| view_cost_rates | |
|
|
|
|
| log_costs | |
|
|
|
|
And there is 1 User with: |
|
|
|
|
| Login | testuser | |
|
|
|
|
| Firstname | Bob | |
|
|
|
|
| Lastname | Bobbit | |
|
|
|
|
| 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 work_package with the following: |
|
|
|
|
And the project "Standard Project" has 1 issue with the following: |
|
|
|
|
| subject | test_work_package | |
|
|
|
|
And the work_package "test_work_package" has 1 time entry with the following: |
|
|
|
|
And the issue "test_work_package" has 1 time entry with the following: |
|
|
|
|
| hours | 1.00 | |
|
|
|
|
| user | testuser | |
|
|
|
|
And there is 1 cost type with the following: |
|
|
|
@ -28,37 +28,37 @@ Feature: Permission View Own hourly and cost rates |
|
|
|
|
And the work_package "test_work_package" has 1 cost entry with the following: |
|
|
|
|
| units | 2.00 | |
|
|
|
|
| user | testuser | |
|
|
|
|
| cost type | Translation | |
|
|
|
|
| cost type | Translation | |
|
|
|
|
And the user "manager" has: |
|
|
|
|
| hourly rate | 11.00 | |
|
|
|
|
And the work_package "test_work_package" has 1 time entry with the following: |
|
|
|
|
| hours | 3.00 | |
|
|
|
|
| user | manager | |
|
|
|
|
And the work_package "test_work_package" has 1 cost entry with the following: |
|
|
|
|
| units | 5.00 | |
|
|
|
|
| user | manager | |
|
|
|
|
| cost type | Translation | |
|
|
|
|
| hourly rate | 11.00 | |
|
|
|
|
And the issue "test_work_package" has 1 time entry with the following: |
|
|
|
|
| hours | 3.00 | |
|
|
|
|
| user | manager | |
|
|
|
|
And the work_package "test_work_package" 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 work_package "test_work_package" |
|
|
|
|
And I am on the page for the issue "test_work_package" |
|
|
|
|
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 work_packages page for the project called "Standard Project" |
|
|
|
|
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 work_packages page for the project called "Standard Project" |
|
|
|
|
And I toggle the Options fieldset |
|
|
|
|
And I select to see columns |
|
|
|
|
And I select to see columns |
|
|
|
|
| Overall costs | |
|
|
|
|
| Labor costs | |
|
|
|
|
| Unit costs | |
|
|
|
|
And I follow "Apply" |
|
|
|
|
Then I should see "24.00 EUR" |
|
|
|
|
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 |
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|