MDL-43883 Behat: Make Atto the default text editor and adjust behat to use it.

This commit is contained in:
Damyon Wiese 2014-02-13 15:57:44 +08:00
parent da00661d1f
commit 9f07f05a48
7 changed files with 15 additions and 228 deletions

View file

@ -99,9 +99,6 @@ class behat_forms extends behat_base {
*/
protected function expand_all_fields() {
// We ensure that all the editors are loaded and we can interact with them.
$this->ensure_editors_are_loaded();
// We already know that we waited for the DOM and the JS to be loaded, even the editor
// so, we will use the reduced timeout as it is a common task and we should save time.
try {

View file

@ -95,12 +95,6 @@ class behat_permissions extends behat_base {
try {
$advancedtoggle = $this->find_button(get_string('showadvanced', 'form'));
if ($advancedtoggle) {
// As we are interacting with a moodle form we wait for the editor to be ready
// otherwise we may have problems when setting values on it or clicking on elements
// as the position of the elements will change once the editor is loaded.
$this->ensure_editors_are_loaded();
$advancedtoggle->click();
// Wait for the page to load.