When I set "Name" to "Webship test lamp"

Set a field of the form (or of the open modal) to a value, by its label, the way a person does for its kind: type a text, a number or a date (2026-12-01), pick an option of a list (searching for it when the list searches the server), turn a switch "on" or "off", check a checkbox ("checked", "unchecked"), check the options of a list of checkboxes ("PHP, Laravel"), choose a radio or toggle button, write a rich or Markdown text, add tags ("a, b").

Examples

When I set "Name" to "Webship test lamp"
When I set "Visibility" to "off"
And I set "Brand" to "Webship Brand Alpha"
When I set "Labels" to "Bug, Feature"
And we set "Due date" to "2026-12-01"

Pattern

When(/^(I |we )*set "([^"]*)" to "([^"]*)"$/, …)

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