@@ -290,6 +290,7 @@ $string['stoponerror'] = 'Stop on error';
$string['stoponerror_help']='This setting determines whether the import process stops when an error is detected, resulting in no questions being imported, or whether any questions containing errors are ignored and any valid questions are imported.';
$string['tofilecategory']='Write category to file';
$string['tofilecontext']='Write context to file';
$string['topfor']='Top for {$a}';
$string['uninstallbehaviour']='Uninstall this question behaviour.';
$string['uninstallqtype']='Uninstall this question type.';
@@ -20,13 +20,12 @@ Feature: A teacher can move question categories in the question bank
And I log in as "teacher1"
And I am on "Course 1" course homepage
@javascript
Scenario:A question category can be moved to another context
When I follow "Test quiz"
And I navigate to "Categories" node in "Quiz administration > Question bank"
And I click on "Parent category""field"
And I click on "//optgroup[@label='Quiz:Testquiz']//option[normalize-space(text())='Top']""xpath_element"
And I set the field "Name" to "Test category"
And I set the following fields to these values:
|Name|Testcategory|
|Parentcategory|TopforTestquiz|
And I press "submitbutton"
And I click on "Share in context for Course:Course1""link"inthe"Testcategory""list_item"
Then I should see "Test category" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' questioncategories ') and contains(concat(' ', normalize-space(@class), ' '), ' contextlevel50 ')]""xpath_element"