Given there is a work package "Webship test task" in the project "webship-site"

Make a work package through the site's API as the managing account, in the project's first type and default status; one of the subject left by a stopped run goes first. It goes again after the scenario.

Examples

Given there is a work package "Webship test task" in the project "webship-site"
Given there is a work package "Webship test comment" in the project "Webship site"
And there is a work package "Webship test status"
Given there is a work package "Webship test time" in the project "webship-site"
Given there is a work package "Webship test assignee"

Pattern

Given(/^there is a work package "([^"]*)"(?: in the project "([^"]*)")?$/, …)

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