MDL-70167 behat: Rewrite attribute check steps
commit6882d7399ba57014f8b433c771db45990b88d5c8
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 23 Nov 2020 01:00:13 +0000 (23 09:00 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 23 Nov 2020 03:03:28 +0000 (23 11:03 +0800)
treed4adc43f014a92f42452a27944d830386b241e97
parent80bf03d583c8290af390244608240cfff184e657
MDL-70167 behat: Rewrite attribute check steps

This commit updates the following steps to use the
`the_attribute_of_should_be_set` step under the hood:
- the [element] [type] should be disabled
- the [element] [type] should be enabled
- the [element] [type] should be readonly
- the [element] [type] should not be readonly

This reduces unnecssary code duplication.
lib/tests/behat/behat_general.php