MDL-44871 Atto behat tests: Modified the tests to work around focus bugs with workspaces
commitbbd644ea3409d2f2a2f8673df4b4abb3b65b4638
authorDamyon Wiese <damyon@moodle.com>
Wed, 11 Jun 2014 04:39:57 +0000 (11 12:39 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 12 Jun 2014 03:11:17 +0000 (12 11:11 +0800)
treeacfc782a2e093fc4981f39452e0b9e37625f50a8
parentc4bfba91c2069610c013039a384098d19a42bdde
MDL-44871 Atto behat tests: Modified the tests to work around focus bugs with workspaces

The main changes here are that the "select the text in" step was modified to select only the
first text node in the editor field, and to focus on it's parent instead of the entire editable div.

Some tests had to be modified to match the new behaviour, and another "real" bug was found in the table plugin.
12 files changed:
lib/behat/form_field/behat_form_editor.php
lib/editor/atto/plugins/accessibilityhelper/tests/behat/accessibilityhelper.feature
lib/editor/atto/plugins/charmap/tests/behat/charmap.feature
lib/editor/atto/plugins/clear/tests/behat/clear.feature
lib/editor/atto/plugins/equation/tests/behat/equation.feature
lib/editor/atto/plugins/image/tests/behat/image.feature
lib/editor/atto/plugins/media/tests/behat/media.feature
lib/editor/atto/plugins/table/tests/behat/table.feature
lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-debug.js
lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-min.js
lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button.js
lib/editor/atto/plugins/table/yui/src/button/js/button.js