Assert what a field of the form holds, found by its label: the text, the chosen option, "yes" or "no" for a box, "2026-01-15 10:30:00" for a date and time, the chosen object of an autocomplete field, "Fun, Serious" for a selector's chosen options, the text of a read-only field.
Examples
Then "Question text" should be set to "Who is there?"
Then "Category" should be set to "Science"
And "Tags" should be set to "Fun, Serious"
Then "Staff status" should be set to "yes"
And "Date published" should be set to "2025-01-06 09:00:00"
Pattern
Then(/^"([^"]*)" should be set to "([^"]*)"$/, …)
Part of @webship-js/django-steps (github.com/webship/django-steps), a step pack for Webship-js 2.0.x.