MDL-75335 mod_data: Zero state for Fields and Templates

This commit is contained in:
Amaia Anabitarte
2022-10-25 16:35:58 +02:00
parent 32c8f75c0d
commit ab97d41644
25 changed files with 264 additions and 118 deletions
+4 -1
View File
@@ -53,7 +53,10 @@ class behat_mod_data extends behat_base {
$fieldsstr = get_string('fields', 'mod_data');
$this->execute("behat_navigation::i_navigate_to_in_current_page_administration", $fieldsstr);
$this->execute('behat_forms::i_set_the_field_to', array('newtype', $this->escape($fieldtype)));
$this->execute('behat_general::i_click_on', [get_string('newfield', 'mod_data'), "button"]);
$this->execute('behat_general::i_click_on_in_the',
[$this->escape($fieldtype), "link", "#action_bar", "css_element"]
);
if (!$this->running_javascript()) {
$this->execute('behat_general::i_click_on_in_the',