Then the site administration search should find the setting "Guest login button"

Assert that the search results of the site administration show, or do not show, a setting by its label (or its short name).

Examples

Then the site administration search should find the setting "Guest login button"
Then the site administration search should not find the setting "Guest login button"
And the site administration search should find the setting "guestloginbutton"
Then the site administration search should find the setting "Password policy"
But the site administration search should not find the setting "Password policy"

Pattern

Then(/^the site administration search should( not)* find the setting "([^"]*)"$/, …)

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