Edit the selected documents together: the selection's "Edit" opens a drawer, the field is chosen in its "Select fields to edit" and set to the value (a relationship and a select take an option's text).
Examples
When I edit the selected documents, setting "Categories" to "News"
When I edit the selected documents, setting "Published At" to "2026-01-15"
And I edit the selected documents, setting "Categories" to "Design"
When I edit the selected documents, setting "Authors" to "Editor Webship"
When I edit the selected documents, setting "Categories" to "Finance"
Pattern
When(/^I edit the selected documents, setting "([^"]*)" to "([^"]*)"$/, …)
Part of @webship-js/payload-steps (github.com/webship/payload-steps), a step pack for Webship-js 2.0.x.