Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7
-
Component/s: Automated functional tests (behat)
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_27_STABLE
-
Fixed Branches:MOODLE_25_STABLE, MOODLE_26_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-44891-master -
Pull Master Diff URL:
Description
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!).