Then the section "Classification" should have the field "Category"

Assert that a section of the form has (or does not have) a field, by its label.

Examples

Then the section "Classification" should have the field "Category"
Then the section "Date information" should have the field "Date published"
And the section "Classification" should not have the field "Question text"
Then the section "Permissions" should have the field "Groups"
And the section "Results" should have the field "Total votes"

Pattern

Then(/^the section "([^"]*)" should( not)* have the field "([^"]*)"$/, …)

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