MDL-70032 qtype_multichoice: Use custom partial named selector
authorJun Pataleta <jun@moodle.com>
Thu, 29 Oct 2020 07:59:29 +0000 (15:59 +0800)
committerJun Pataleta <jun@moodle.com>
Thu, 29 Oct 2020 08:21:53 +0000 (16:21 +0800)
commit8ea746fa79497b22e60c11675dce201fd2c83fa8
treeafad8f7719f914d98b6f07c057efe7b0bf4e0415
parent5d7bd0208a79c92377919567c8b1094fac64eb9a
MDL-70032 qtype_multichoice: Use custom partial named selector

* With the removal of the label element, Behat now has to click on the
answer text. In order to achieve this, the custom partial named selector
"qtype_multichoice > Answer" was now added and have replaced the
instances where the label of the answer's checkbox/radio button is
being clicked.
question/type/multichoice/tests/behat/behat_qtype_multichoice.php [new file with mode: 0644]
question/type/multichoice/tests/behat/clearanswers.feature
question/type/multichoice/tests/behat/preview.feature
question/type/multichoice/upgrade.txt [new file with mode: 0644]