diff --git a/question/tests/behat/copy_questions.feature b/question/tests/behat/copy_questions.feature index 5bccbb39fb622..e0f344d80fb2a 100644 --- a/question/tests/behat/copy_questions.feature +++ b/question/tests/behat/copy_questions.feature @@ -46,4 +46,4 @@ Feature: A teacher can duplicate questions in the question bank When I click on "Duplicate" "link" in the "Test question to be copied" "table_row" And I press "Cancel" Then I should see "Test question to be copied" - And the field "Select a category" matches value "Test questions (1)" + And the field "Select a category" matches value "   Test questions (1)" diff --git a/question/tests/behat/question_categories.feature b/question/tests/behat/question_categories.feature index 138becbeace64..8d66a27e4149a 100644 --- a/question/tests/behat/question_categories.feature +++ b/question/tests/behat/question_categories.feature @@ -1,4 +1,4 @@ -@core @core_question +@core @core_question @javascript Feature: A teacher can put questions in categories in the question bank In order to organize my questions As a teacher @@ -16,9 +16,10 @@ Feature: A teacher can put questions in categories in the question bank | teacher1 | C1 | editingteacher | And the following "question categories" exist: | contextlevel | reference | questioncategory | name | - | Course | C1 | Top | Default for C1 | + | Course | C1 | Top | top | + | Course | C1 | top | Default for C1 | | Course | C1 | Default for C1 | Subcategory | - | Course | C1 | Top | Used category | + | Course | C1 | top | Used category | And the following "questions" exist: | questioncategory | qtype | name | questiontext | | Used category | essay | Test question to be moved | Write about whatever you want | @@ -38,7 +39,7 @@ Feature: A teacher can put questions in categories in the question bank Scenario: A question category can be edited When I navigate to "Categories" node in "Course administration > Question bank" And I click on "Edit" "link" in the "Subcategory" "list_item" - And the field "parent" matches value "   Default for C1" + And the field "parent" matches value "   Default for C1" And I set the following fields to these values: | Name | New name | | Category info | I was edited | @@ -67,7 +68,7 @@ Feature: A teacher can put questions in categories in the question bank And I set the field "Question category" to "Subcategory" And I press "Move to >>" Then I should see "Test question to be moved" - And the field "Select a category" matches value "   Subcategory (1)" + And the field "Select a category" matches value "      Subcategory (1)" And the "Select a category" select box should contain "Used category" And the "Select a category" select box should not contain "Used category (1)" @@ -80,6 +81,6 @@ Feature: A teacher can put questions in categories in the question bank And I set the field "Save in category" to "Subcategory" And I press "id_submitbutton" Then I should see "Test question to be moved" - And the field "Select a category" matches value "   Subcategory (1)" + And the field "Select a category" matches value "      Subcategory (1)" And the "Select a category" select box should contain "Used category" And the "Select a category" select box should not contain "Used category (1)"