When I log "0.5" hours on the work package

Log time on the open work package through its "Log time" dialog: the hours ("0.5", "1", "1h 30m"), and a comment when the step gives one. The day is today.

Examples

When I log "0.5" hours on the work package
When I log "1" hours on the work package with the comment "Read the code"
And we log "2" hours on the work package
When I log "1.25" hours on the work package with the comment "Webship test time"
Then I log "0.5" hours on the work package

Pattern

When(/^(I |we )*log "([^"]*)" hours on the work package(?: with the comment "([^"]*)")?$/, …)

Part of @webship-js/openproject-steps (github.com/webship/openproject-steps), a step pack for Webship-js 2.0.x.