silverstripe-behat-extension
silverstripe-behat-extension copied to clipboard
Add step definition to support asserting that form fields are readonly
We currently have BasicContext::stepFieldShouldBeDisabled
:
* @Then /^the "(?P<name>(?:[^"]|\\")*)" (?P<type>(?:(field|button))) should (?P<negate>(?:(not |)))be disabled/
* @Then /^the (?P<type>(?:(field|button))) "(?P<name>(?:[^"]|\\")*)" should (?P<negate>(?:(not |)))be disabled/
It'd be great to have the same thing but for readonly fields.