MDL-57137 behat: Subcategory has black space before name

This commit is contained in:
Rajesh Taneja
2016-12-07 09:14:11 +08:00
committed by Andrew Nicols
parent 519a5a57db
commit f2de91ec41
@@ -25,7 +25,6 @@ Feature: A teacher can put questions in categories in the question bank
And I log in as "teacher1"
And I follow "Course 1"
@javascript
Scenario: A new question category can be created
When I navigate to "Categories" node in "Course administration > Question bank"
And I set the following fields to these values:
@@ -36,11 +35,10 @@ Feature: A teacher can put questions in categories in the question bank
Then I should see "New Category 1 (0)"
And I should see "Created as a test" in the "New Category 1" "list_item"
@javascript
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 |
@@ -48,13 +46,11 @@ Feature: A teacher can put questions in categories in the question bank
Then I should see "New name"
And I should see "I was edited" in the "New name" "list_item"
@javascript
Scenario: An empty question category can be deleted
When I navigate to "Categories" node in "Course administration > Question bank"
And I click on "Delete" "link" in the "Subcategory" "list_item"
Then I should not see "Subcategory"
@javascript
Scenario: An non-empty question category can be deleted if you move the contents elsewhere
When I navigate to "Categories" node in "Course administration > Question bank"
And I click on "Delete" "link" in the "Used category" "list_item"
@@ -71,7 +67,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)"
@@ -84,6 +80,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)"