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:22 +0000 (16:21 +0800)
commitac9ecf6bef69cb5287bffa3f55d9ee683565a659
tree0b3abcb6cf300a69153ce9b168bf30330a490788
parenta1d81dc6d96b745d848c19cecfb6659030f8bfad
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]