Línea 72... |
Línea 72... |
72 |
if ($type !== 'gradeitem') {
|
72 |
if ($type !== 'gradeitem') {
|
73 |
$this->execute('behat_general::i_click_on_in_the', [get_string('showmore', 'form'),
|
73 |
$this->execute('behat_general::i_click_on_in_the', [get_string('showmore', 'form'),
|
74 |
'link', '.modal-dialog', 'css_element']);
|
74 |
'link', '.modal-dialog', 'css_element']);
|
75 |
}
|
75 |
}
|
Línea -... |
Línea 76... |
- |
|
76 |
|
76 |
|
77 |
|
77 |
$this->execute("behat_forms::i_set_the_following_fields_to_these_values", $data);
|
78 |
$this->execute("behat_forms::i_set_the_following_fields_to_these_values", $data);
|
78 |
if ($this->getSession()->getPage()->find('xpath', './/button[@data-action="save"]')) {
|
79 |
if ($this->getSession()->getPage()->find('xpath', './/button[@data-action="save"]')) {
|
- |
|
80 |
$container = $this->get_selected_node("core_grades > gradeitem modal", "form");
|
79 |
$container = $this->get_selected_node("core_grades > gradeitem modal", "form");
|
81 |
$this->execute('behat_general::i_click_on_in_the', [
|
- |
|
82 |
'.//button[@data-action="save"]',
|
- |
|
83 |
'xpath',
|
80 |
$node = $this->find('xpath', './/button[@data-action="save"]', false, $container);
|
84 |
$container,
|
- |
|
85 |
'NodeElement',
|
81 |
$node->press();
|
86 |
]);
|
82 |
} else {
|
87 |
} else {
|
83 |
$savechanges = get_string('savechanges', 'grades');
|
88 |
$savechanges = get_string('savechanges', 'grades');
|
84 |
$this->execute('behat_forms::press_button', $this->escape($savechanges));
|
89 |
$this->execute('behat_forms::press_button', $this->escape($savechanges));
|
85 |
}
|
90 |
}
|