Línea 66... |
Línea 66... |
66 |
* @throws Exception with a meaningful error message if the specified page cannot be found.
|
66 |
* @throws Exception with a meaningful error message if the specified page cannot be found.
|
67 |
*/
|
67 |
*/
|
68 |
protected function resolve_page_instance_url(string $type, string $identifier): moodle_url {
|
68 |
protected function resolve_page_instance_url(string $type, string $identifier): moodle_url {
|
69 |
switch (strtolower($type)) {
|
69 |
switch (strtolower($type)) {
|
70 |
case 'course question bank':
|
70 |
case 'course question bank':
|
- |
|
71 |
// The question bank does not handle fields at the edge of the viewport well.
|
- |
|
72 |
// Increase the size to avoid this.
|
- |
|
73 |
$this->execute('behat_general::i_change_window_size_to', ['window', 'large']);
|
71 |
return new moodle_url('/question/edit.php',
|
74 |
return new moodle_url('/question/edit.php', [
|
72 |
['courseid' => $this->get_course_id($identifier)]);
|
75 |
'courseid' => $this->get_course_id($identifier),
|
- |
|
76 |
]);
|
Línea 73... |
Línea 77... |
73 |
|
77 |
|
74 |
case 'course question categories':
|
78 |
case 'course question categories':
|
75 |
return new moodle_url('/question/bank/managecategories/category.php',
|
79 |
return new moodle_url('/question/bank/managecategories/category.php',
|