Then "Total votes" should be read-only

Assert that a field of the form is read-only (the admin shows its value as text, with no input), and with "and show" what it shows.

Examples

Then "Total votes" should be read-only
Then "Total votes" should be read-only and show "0"
And "Total votes" should be read-only and show "8"
Then "Question text" should be read-only and show "What's up?"
And "Category" should be read-only and show "Food"

Pattern

Then(/^"([^"]*)" should be read-only(?: and show "([^"]*)")?$/, …)

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