MDL-43738 behat: Normalization and major refactoring of getters and setters
authorDavid Monllao <davidm@moodle.com>
Fri, 24 Jan 2014 05:24:22 +0000 (13:24 +0800)
committerDavid Monllao <davidm@moodle.com>
Thu, 27 Feb 2014 10:22:03 +0000 (18:22 +0800)
commitc3f1e9532d9a6bf6de6ddd7b00b6ced112259851
tree3ea590526cd42e741b010e049ccead11ff10eb98
parentbecb7e511865a7f7df916c01032504c2f2a2b177
MDL-43738 behat: Normalization and major refactoring of getters and setters

Every single step that sets or gets a value from a field
has been updated to follow the same behaviour both when
using it through a single step or through generic steps
like "I fill the moodle form with:", to resume all the
changes:
- Created a behat_form_group to re-guess the field type
  and act appropriately setting and getting it's value
- Normalize all getters and setters to use behat_form_field
  children
- Complete behat_form_checkbox to trigger the appropiate JS
  event needed to perform some JS scripts that are listening
- Refactor MDL-43713 multi-select changes and remove
  the two new steps introduced there as that behaviour can
  be managed from the generic getter
- Added a new step definition to check a capability permission
  as we changed the way radio buttons gets it's value
lib/behat/form_field/behat_form_checkbox.php
lib/behat/form_field/behat_form_date_selector.php
lib/behat/form_field/behat_form_date_time_selector.php
lib/behat/form_field/behat_form_field.php
lib/behat/form_field/behat_form_group.php [new file with mode: 0644]
lib/behat/form_field/behat_form_radio.php
lib/behat/form_field/behat_form_select.php
lib/tests/behat/behat_forms.php