mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-84905 Behat: Fix I set the following administration settings failure
This commit is contained in:
parent
b05bd11a84
commit
71269d9c8f
2 changed files with 4 additions and 1 deletions
|
@ -82,6 +82,8 @@ class behat_admin extends behat_base {
|
||||||
|
|
||||||
$this->execute('behat_forms::i_set_the_field_with_xpath_to', [$fieldxpath, $value]);
|
$this->execute('behat_forms::i_set_the_field_with_xpath_to', [$fieldxpath, $value]);
|
||||||
$this->execute("behat_general::i_click_on", [get_string('savechanges'), 'button']);
|
$this->execute("behat_general::i_click_on", [get_string('savechanges'), 'button']);
|
||||||
|
// Wait for the page to be redirected.
|
||||||
|
$this->execute("behat_general::i_wait_to_be_redirected");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,8 +89,9 @@ class behat_theme_classic_behat_admin extends behat_admin {
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->execute('behat_forms::i_set_the_field_with_xpath_to', [$fieldxpath, $value]);
|
$this->execute('behat_forms::i_set_the_field_with_xpath_to', [$fieldxpath, $value]);
|
||||||
|
|
||||||
$this->execute("behat_general::i_click_on", [get_string('savechanges'), 'button']);
|
$this->execute("behat_general::i_click_on", [get_string('savechanges'), 'button']);
|
||||||
|
// Wait for the page to be redirected.
|
||||||
|
$this->execute("behat_general::i_wait_to_be_redirected");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue