Then the time spent on the work package should be "0.5h"

Assert the time spent on the open work package, as it shows it ("0.5h", "1h 30m").

Examples

Then the time spent on the work package should be "0.5h"
Then the time spent on the work package should be "0h"
And the time spent on the work package should be "1h"
But the time spent on the work package should be "2h"
Then the time spent on the work package should be "1.25h"

Pattern

Then(/^the time spent on the work package should be "([^"]*)"$/, …)

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