Línea 21... |
Línea 21... |
21 |
| feedback | Learning experience | C1 | feedback0 |
|
21 |
| feedback | Learning experience | C1 | feedback0 |
|
22 |
And I change window size to "large"
|
22 |
And I change window size to "large"
|
Línea 23... |
Línea 23... |
23 |
|
23 |
|
24 |
Scenario: Export sample feedback and compare with the fixture
|
24 |
Scenario: Export sample feedback and compare with the fixture
|
25 |
When I am on the "Learning experience" "feedback activity" page logged in as teacher
|
25 |
When I am on the "Learning experience" "feedback activity" page logged in as teacher
|
26 |
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
26 |
And I navigate to "Questions" in current page administration
|
27 |
And "Export questions" "link" should not exist in the ".tertiary-navigation" "css_element"
|
27 |
And "Export questions" "link" should not exist in the ".tertiary-navigation" "css_element"
|
28 |
And I add a "Information" question to the feedback with:
|
28 |
And I add a "Information" question to the feedback with:
|
29 |
| Question | this is an information question |
|
29 |
| Question | this is an information question |
|
30 |
| Label | info |
|
30 |
| Label | info |
|
Línea 38... |
Línea 38... |
38 |
And I add a "Multiple choice" question to the feedback with:
|
38 |
And I add a "Multiple choice" question to the feedback with:
|
39 |
| Question | this is a multiple choice 1 |
|
39 |
| Question | this is a multiple choice 1 |
|
40 |
| Label | multichoice1 |
|
40 |
| Label | multichoice1 |
|
41 |
| Multiple choice type | Multiple choice - single answer |
|
41 |
| Multiple choice type | Multiple choice - single answer |
|
42 |
| Multiple choice values | option a\noption b\noption c |
|
42 |
| Multiple choice values | option a\noption b\noption c |
|
43 |
And I select "Add a page break" from the "typ" singleselect
|
43 |
And I add a page break to the feedback
|
44 |
And I add a "Multiple choice" question to the feedback with:
|
44 |
And I add a "Multiple choice" question to the feedback with:
|
45 |
| Question | this is a multiple choice 2 |
|
45 |
| Question | this is a multiple choice 2 |
|
46 |
| Label | multichoice2 |
|
46 |
| Label | multichoice2 |
|
47 |
| Multiple choice type | Multiple choice - multiple answers |
|
47 |
| Multiple choice type | Multiple choice - multiple answers |
|
48 |
| Hide the "Not selected" option | Yes |
|
48 |
| Hide the "Not selected" option | Yes |
|
Línea 66... |
Línea 66... |
66 |
And I add a "Short text answer" question to the feedback with:
|
66 |
And I add a "Short text answer" question to the feedback with:
|
67 |
| Question | this is a short text answer |
|
67 |
| Question | this is a short text answer |
|
68 |
| Label | shorttext |
|
68 |
| Label | shorttext |
|
69 |
| Maximum characters accepted | 200 |
|
69 |
| Maximum characters accepted | 200 |
|
70 |
Then following "Export questions" should export feedback identical to "mod/feedback/tests/fixtures/testexport.xml"
|
70 |
Then following "Export questions" should export feedback identical to "mod/feedback/tests/fixtures/testexport.xml"
|
71 |
And I log out
|
- |
|
Línea 72... |
Línea 71... |
72 |
|
71 |
|
73 |
@javascript @_file_upload
|
72 |
@javascript @_file_upload
|
74 |
Scenario: Import feedback deleting old items
|
73 |
Scenario: Import feedback deleting old items
|
75 |
When I am on the "Learning experience" "feedback activity" page logged in as teacher
|
74 |
When I am on the "Learning experience" "feedback activity" page logged in as teacher
|
76 |
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
75 |
And I navigate to "Questions" in current page administration
|
77 |
And I add a "Numeric answer" question to the feedback with:
|
76 |
And I add a "Numeric answer" question to the feedback with:
|
78 |
| Question | Existing question |
|
77 |
| Question | Existing question |
|
79 |
| Label | numeric |
|
78 |
| Label | numeric |
|
- |
|
79 |
| Range to | 100 |
|
80 |
| Range to | 100 |
|
80 |
And I press "Actions"
|
81 |
And I select "Import questions" from the "jump" singleselect
|
81 |
And I choose "Import" in the open action menu
|
82 |
And I upload "mod/feedback/tests/fixtures/testexport.xml" file to "File" filemanager
|
82 |
And I upload "mod/feedback/tests/fixtures/testexport.xml" file to "File" filemanager
|
83 |
And I press "Save"
|
- |
|
84 |
And I select "Add question" from the "jump" singleselect
|
83 |
And I press "Import"
|
85 |
Then I should not see "Existing question"
|
84 |
Then I should not see "Existing question"
|
86 |
And I should see "this is an information question"
|
85 |
And I should see "this is an information question"
|
87 |
And I should see "label text"
|
86 |
And I should see "label text"
|
88 |
And I should see "this is a longer text answer"
|
87 |
And I should see "this is a longer text answer"
|
Línea 94... |
Línea 93... |
94 |
And I should see "this is a short text answer"
|
93 |
And I should see "this is a short text answer"
|
Línea 95... |
Línea 94... |
95 |
|
94 |
|
96 |
@javascript @_file_upload
|
95 |
@javascript @_file_upload
|
97 |
Scenario: Import feedback appending new items
|
96 |
Scenario: Import feedback appending new items
|
98 |
When I am on the "Learning experience" "feedback activity" page logged in as teacher
|
97 |
When I am on the "Learning experience" "feedback activity" page logged in as teacher
|
99 |
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
98 |
And I navigate to "Questions" in current page administration
|
100 |
And I add a "Numeric answer" question to the feedback with:
|
99 |
And I add a "Numeric answer" question to the feedback with:
|
101 |
| Question | Existing question |
|
100 |
| Question | Existing question |
|
102 |
| Label | numeric |
|
101 |
| Label | numeric |
|
- |
|
102 |
| Range to | 100 |
|
103 |
| Range to | 100 |
|
103 |
And I press "Actions"
|
104 |
And I select "Import questions" from the "jump" singleselect
|
104 |
And I choose "Import" in the open action menu
|
105 |
And I set the field "Append new items" to "1"
|
105 |
And I set the field "Keep existing questions and add new questions at the end" to "1"
|
106 |
And I upload "mod/feedback/tests/fixtures/testexport.xml" file to "File" filemanager
|
106 |
And I upload "mod/feedback/tests/fixtures/testexport.xml" file to "File" filemanager
|
107 |
And I press "Save"
|
- |
|
108 |
And I select "Add question" from the "jump" singleselect
|
107 |
And I press "Import"
|
109 |
Then I should see "Existing question"
|
108 |
Then I should see "Existing question"
|
110 |
And "Existing question" "text" should appear before "this is an information question" "text"
|
109 |
And "Existing question" "text" should appear before "this is an information question" "text"
|
111 |
And I should see "this is an information question"
|
110 |
And I should see "this is an information question"
|
112 |
And I should see "label text"
|
111 |
And I should see "label text"
|