| Línea 147... |
Línea 147... |
| 147 |
$attempt = $DB->get_record('quiz_attempts',
|
147 |
$attempt = $DB->get_record('quiz_attempts',
|
| 148 |
['quiz' => $quiz->id, 'userid' => $user->id, 'attempt' => $attemptno], '*', MUST_EXIST);
|
148 |
['quiz' => $quiz->id, 'userid' => $user->id, 'attempt' => $attemptno], '*', MUST_EXIST);
|
| 149 |
return new moodle_url('/mod/quiz/review.php', ['attempt' => $attempt->id]);
|
149 |
return new moodle_url('/mod/quiz/review.php', ['attempt' => $attempt->id]);
|
| Línea 150... |
Línea 150... |
| 150 |
|
150 |
|
| - |
|
151 |
case 'question bank':
|
| - |
|
152 |
// The question bank does not handle fields at the edge of the viewport well.
|
| - |
|
153 |
// Increase the size to avoid this.
|
| 151 |
case 'question bank':
|
154 |
$this->execute('behat_general::i_change_window_size_to', ['window', 'large']);
|
| 152 |
return new moodle_url('/question/edit.php', [
|
155 |
return new moodle_url('/question/edit.php', [
|
| 153 |
'cmid' => $this->get_cm_by_quiz_name($identifier)->id,
|
156 |
'cmid' => $this->get_cm_by_quiz_name($identifier)->id,
|
| Línea 624... |
Línea 627... |
| 624 |
* @Given /^I click on shuffle for section "([^"]*)" on the quiz edit page$/
|
627 |
* @Given /^I click on shuffle for section "([^"]*)" on the quiz edit page$/
|
| 625 |
*/
|
628 |
*/
|
| 626 |
public function i_click_on_shuffle_for_section($heading) {
|
629 |
public function i_click_on_shuffle_for_section($heading) {
|
| 627 |
$xpath = $this->get_xpath_for_shuffle_checkbox($heading);
|
630 |
$xpath = $this->get_xpath_for_shuffle_checkbox($heading);
|
| 628 |
$checkbox = $this->find('xpath', $xpath);
|
631 |
$checkbox = $this->find('xpath', $xpath);
|
| 629 |
$this->ensure_node_is_visible($checkbox);
|
- |
|
| 630 |
$checkbox->click();
|
632 |
$checkbox->click();
|
| 631 |
}
|
633 |
}
|
| Línea 632... |
Línea 634... |
| 632 |
|
634 |
|
| 633 |
/**
|
635 |
/**
|