mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-79248-master' of https://github.com/andrewnicols/moodle
This commit is contained in:
commit
7c6df5d2fd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -28,6 +28,7 @@ import * as Fragment from 'core/fragment';
|
||||
import * as Templates from 'core/templates';
|
||||
import * as FormChangeChecker from 'core_form/changechecker';
|
||||
import {call as fetchMany} from 'core/ajax';
|
||||
import Pending from 'core/pending';
|
||||
|
||||
const SELECTORS = {
|
||||
EXISTING_CATEGORY_CONTAINER: '[data-region="existing-category-container"]',
|
||||
@ -318,6 +319,8 @@ export default class ModalAddRandomQuestion extends Modal {
|
||||
newcategory,
|
||||
parentcategory
|
||||
) {
|
||||
// We do not need to resolve this Pending because the form submission will result in a page redirect.
|
||||
new Pending('mod-quiz/modal_add_random_questions');
|
||||
const call = {
|
||||
methodname: 'mod_quiz_add_random_questions',
|
||||
args: {
|
||||
|
@ -282,8 +282,7 @@ Feature: Edit quiz page - remove multiple questions
|
||||
# Delete all questions in page. Page contains multiple questions.
|
||||
When I open the "last" add to quiz menu
|
||||
And I follow "a random question"
|
||||
And I click on "menurandomcount" "select"
|
||||
And I click on "3" "option"
|
||||
And I set the field "Number of random questions" to "3"
|
||||
And I press "Add random question"
|
||||
And I click on "Select multiple items" "button"
|
||||
And I press "Select all"
|
||||
|
Loading…
x
Reference in New Issue
Block a user