Feature: Tracking Time Background: Given there is 1 project with the following: | name | project1 | | identifier | project1 | And I am working in project "parent" And the project "project1" has the following trackers: | name | position | | Bug | 1 | And there is a role "member" And there is an activity "Development" And there is an activity "Design" And the role "member" may have the following rights: | add_issues | | view_issues | | edit_issues | And there is 1 user with the following: | login | bob | And the user "bob" is a "member" in the project "project1" And the user "bob" has 1 issue with the following: | subject | issue1 | | due_date | 2012-05-04 | | start_date | 2011-05-04 | | description | Aioli Sali Grande | And there is a time entry for "issue1" with 4 hours And I am logged in as "admin" And I am on the time entry page of issue "issue1" Scenario: Adding a time entry When I log 2 hours with the comment "test" Then I should see a time entry with 2 hours and comment "test" And I should see a total spent time of 6 hours Scenario: Editing a time entry When I update the first time entry with 4 hours and the comment "updated test" Then I should see a time entry with 4 hours and comment "updated test" And I should see a total spent time of 4 hours