-
Improvement
-
Resolution: Fixed
-
Minor
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-44891-master -
Behat is intended to check user-visible effects in the resulting HTML. Sometimes these effects are implemented using attribute values (two common examples are the alt= attribute, which is visible to screenreader users, and the title= attribute, which is visible to all users; there's also the src attribute of images, and lots of other possibilities too).
There is currently no step that checks an attribute value. This seems like a simple and generic step. I propose the following:
Then the "title" attribute of "Amphibians" "select" should contain "Choose your amphibian"
This step is necessary for MDL-44070 so that I can check that a toggle icon changes status when clicked (it changes its alt=, title=, and src= so I need to check one of them!).