Merge branch 'MDL-76169-master' of https://github.com/andrewnicols/moodle

This commit is contained in:
Sara Arjona 2022-11-03 17:06:05 +01:00 committed by Ilya Tregubov
commit add46e3112
42 changed files with 462 additions and 395 deletions

View file

@ -21,20 +21,16 @@ Feature: Use the qbank plugin manager page for question usage
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
And I should see "Question usage"
When I click on "Disable" "link" in the "Question usage" "table_row"
And I am on the "Test quiz" "quiz activity" page
And I navigate to "Question bank" in current page administration
And I am on the "Test quiz" "mod_quiz > question bank" page
Then I should not see "Usage"
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
And I click on "Enable" "link" in the "Question usage" "table_row"
And I am on the "Test quiz" "quiz activity" page
And I navigate to "Question bank" in current page administration
And I am on the "Test quiz" "mod_quiz > question bank" page
And I should see "Usage"
@javascript
Scenario: Question usage modal should work without any usage data
Given I log in as "admin"
And I am on the "Test quiz" "quiz activity" page
And I navigate to "Question bank" in current page administration
And I am on the "Test quiz" "mod_quiz > question bank" page logged in as "admin"
And I set the field "Select a category" to "Test questions"
And I should see "Test questions"
And I should see "0" on the usage column