mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-57137_question_category_with_parent_category' of https://github.com/melihovv/moodle
This commit is contained in:
commit
3bb4ad7521
@ -163,7 +163,7 @@ class behat_data_generators extends behat_base {
|
|||||||
'question categories' => array(
|
'question categories' => array(
|
||||||
'datagenerator' => 'question_category',
|
'datagenerator' => 'question_category',
|
||||||
'required' => array('name', 'contextlevel', 'reference'),
|
'required' => array('name', 'contextlevel', 'reference'),
|
||||||
'switchids' => array('questioncategory' => 'category')
|
'switchids' => array('questioncategory' => 'parent')
|
||||||
),
|
),
|
||||||
'questions' => array(
|
'questions' => array(
|
||||||
'datagenerator' => 'question',
|
'datagenerator' => 'question',
|
||||||
|
@ -40,6 +40,7 @@ Feature: A teacher can put questions in categories in the question bank
|
|||||||
Scenario: A question category can be edited
|
Scenario: A question category can be edited
|
||||||
When I navigate to "Categories" node in "Course administration > Question bank"
|
When I navigate to "Categories" node in "Course administration > Question bank"
|
||||||
And I click on "Edit" "link" in the "Subcategory" "list_item"
|
And I click on "Edit" "link" in the "Subcategory" "list_item"
|
||||||
|
And the field "parent" matches value " Default for C1"
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Name | New name |
|
| Name | New name |
|
||||||
| Category info | I was edited |
|
| Category info | I was edited |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user