mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-43883 Behat: Make Atto the default text editor and adjust behat to use it.
This commit is contained in:
parent
da00661d1f
commit
9f07f05a48
7 changed files with 15 additions and 228 deletions
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue