Set a field of the form by its label: a text is typed, a select or a relationship chooses its option (a relationship with several values adds it), a checkbox takes "on" or "off", radio buttons choose by label, a date is typed, a rich text is written, an upload chooses an existing file. The fields of an open drawer come first.
Examples
When I set "Title" to "Editor test post"
When I set "Categories" to "Design"
And I set "Hero Image" to "image-post2.webp"
When I set "Name" to "Editor Webship Two"
When I set "Alt" to "A white lighthouse at sea"
Pattern
When(/^I set "([^"]*)" to "([^"]*)"$/, …)
Part of @webship-js/payload-steps (github.com/webship/payload-steps), a step pack for Webship-js 2.0.x.