MDL-58681 behat: Split checkbox and advcheckbox tests
commit641d75bde6694cccc80884b6a40ac6e47fa2e2f9
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 23 Apr 2017 16:13:02 +0000 (23 18:13 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 23 Apr 2017 16:13:02 +0000 (23 18:13 +0200)
treeec06236b4197b39c45e7a43fc501f7649f8e792a
parentfaedb2736eca0008750721c806e81d4d256d43dc
MDL-58681 behat: Split checkbox and advcheckbox tests

MDL-58267 converted "Display description on course page" to advcheckbox
(see 7f53e8aa22d555ba5f94530b7fc04a4e95f35c98).

Advanced checkboxes cannot be tested without real browser because Goutte
does not support the hidden+checkbox duality (MDL-55386).

So this patch does:

- Convert the NON-JS checks to use the "Force format" field (normal checkbox).
- Move the "Display description on course page" (adv. checkbox) to the JS scenario.
- Complete the 2 groups of checks above so the two ways to tick and untick are covered:
    - I set the field "xxxx" to "yyyy"
    - I set the following fields to these values:
- Complete the 2 groups of checks above so the two ways to verify the values are covered:
    - the field "xxxx" [matches|does not match] value "yyyy"
    - the following fields [match|do not match] these values:

That's all! The scenario is a bit spaghetti but it's way off the scope
of the issue to fix that.
admin/tool/behat/tests/behat/get_and_set_fields.feature