Línea 52... |
Línea 52... |
52 |
And I set the field "Filter type" to "Category"
|
52 |
And I set the field "Filter type" to "Category"
|
53 |
And I set the field "Category" to "Test questions"
|
53 |
And I set the field "Category" to "Test questions"
|
54 |
And I press "Apply filters"
|
54 |
And I press "Apply filters"
|
55 |
And I should see "First question"
|
55 |
And I should see "First question"
|
56 |
And I choose "Edit question" action for "First question" in the question bank
|
56 |
And I choose "Edit question" action for "First question" in the question bank
|
- |
|
57 |
And "History" "link" should exist
|
57 |
And I should see "Version 1"
|
58 |
And I should see "v1 (latest)"
|
58 |
And I set the field "id_name" to "Renamed question v2"
|
59 |
And I set the field "id_name" to "Renamed question v2"
|
59 |
And I set the field "id_questiontext" to "edited question"
|
60 |
And I set the field "id_questiontext" to "edited question"
|
60 |
And I press "id_submitbutton"
|
61 |
And I press "id_submitbutton"
|
61 |
And I should see "Teacher1"
|
62 |
And I should see "Teacher1"
|
62 |
And I log in as "teacher2"
|
63 |
And I log in as "teacher2"
|
63 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
64 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
64 |
And I set the field "Filter type" to "Category"
|
65 |
And I set the field "Filter type" to "Category"
|
65 |
And I set the field "Category" to "Test questions"
|
66 |
And I set the field "Category" to "Test questions"
|
66 |
And I press "Apply filters"
|
67 |
And I press "Apply filters"
|
67 |
And I choose "Edit question" action for "Renamed question v2" in the question bank
|
68 |
And I choose "Edit question" action for "Renamed question v2" in the question bank
|
68 |
Then I should see "Version 2"
|
69 |
Then I should see "v2 (latest)"
|
69 |
And I set the field "id_name" to "Renamed question v3"
|
70 |
And I set the field "id_name" to "Renamed question v3"
|
70 |
And I set the field "id_questiontext" to "edited question v3"
|
71 |
And I set the field "id_questiontext" to "edited question v3"
|
71 |
And I press "id_submitbutton"
|
72 |
And I press "id_submitbutton"
|
72 |
And I should not see "Teacher1"
|
73 |
And I should not see "Teacher1"
|
73 |
And I should see "Teacher2"
|
74 |
And I should see "Teacher2"
|