Línea 82... |
Línea 82... |
82 |
Then I should see "Questions Category 1"
|
82 |
Then I should see "Questions Category 1"
|
83 |
And I should see "foo"
|
83 |
And I should see "foo"
|
84 |
And I should see "question 1 name"
|
84 |
And I should see "question 1 name"
|
85 |
And I should see "\"listen\" & \"answer\""
|
85 |
And I should see "\"listen\" & \"answer\""
|
Línea -... |
Línea 86... |
- |
|
86 |
|
- |
|
87 |
Scenario: After closing and reopening the modal, it still works
|
- |
|
88 |
When I am on the "Quiz 1" "mod_quiz > Edit" page logged in as teacher1
|
- |
|
89 |
And I open the "last" add to quiz menu
|
- |
|
90 |
And I follow "a random question"
|
- |
|
91 |
And I click on "Close" "button" in the "Add a random question at the end" "dialogue"
|
- |
|
92 |
And I open the "last" add to quiz menu
|
- |
|
93 |
And I follow "a random question"
|
- |
|
94 |
And I should not see "question 3 name"
|
- |
|
95 |
And I set the field "Category" to "Subcategory"
|
- |
|
96 |
And I press "Apply filters"
|
- |
|
97 |
Then I should see "question 3 name"
|
86 |
|
98 |
|
87 |
Scenario: Teacher without moodle/question:useall should not see the add a random question menu item
|
99 |
Scenario: Teacher without moodle/question:useall should not see the add a random question menu item
|
88 |
Given the following "permission overrides" exist:
|
100 |
Given the following "permission overrides" exist:
|
89 |
| capability | permission | role | contextlevel | reference |
|
101 |
| capability | permission | role | contextlevel | reference |
|
90 |
| moodle/question:useall | Prevent | editingteacher | Course | C1 |
|
102 |
| moodle/question:useall | Prevent | editingteacher | Course | C1 |
|