MDL-70167 behat: Rewrite attribute check steps
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 23 Nov 2020 01:00:13 +0000 (09:00 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 23 Nov 2020 03:02:36 +0000 (11:02 +0800)
commit9d6413d16d298d9f66bf5838d0aef093cb2565c5
tree3e4860fa87d3fde51860224869dde4f90a6933e3
parent7d70165c2564c8a6f5d1fe34a3d47102193cf21f
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