mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -176,8 +176,8 @@ Feature: Anonymous feedback
|
|||
Scenario: Anonymous feedback in a course
|
||||
# Teacher can not
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Multiple choice" question to the feedback with:
|
||||
| Question | Do you like this course? |
|
||||
|
@ -187,8 +187,8 @@ Feature: Anonymous feedback
|
|||
| Multiple choice values | Yes\nNo\nI don't know |
|
||||
And I log out
|
||||
And I log in as "user1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Preview"
|
||||
Then I should see "Do you like this course?"
|
||||
And I press "Continue"
|
||||
|
@ -199,8 +199,8 @@ Feature: Anonymous feedback
|
|||
And I press "Submit your answers"
|
||||
And I log out
|
||||
And I log in as "user2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Preview"
|
||||
And I should see "Do you like this course?"
|
||||
And I press "Continue"
|
||||
|
@ -219,8 +219,8 @@ Feature: Anonymous feedback
|
|||
And I should see "1 (50.00 %)" in the "No" "table_row"
|
||||
And I log out
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Preview"
|
||||
And I should see "Do you like this course?"
|
||||
And I press "Continue"
|
||||
|
|
|
@ -54,18 +54,17 @@ Feature: Mapping courses in a feedback
|
|||
| Multiple choice values | option d\noption e\noption f |
|
||||
And I log out
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Feedback" block
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I add the "Feedback" block
|
||||
And I am on course page "Course 3"
|
||||
And I am on "Course 3" course homepage
|
||||
And I add the "Feedback" block
|
||||
And I log out
|
||||
|
||||
Scenario: Course feedback can not be mapped
|
||||
And I log in as "manager"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Another feedback"
|
||||
And I should not see "Mapped courses"
|
||||
And I should not see "Map feedback to courses"
|
||||
|
@ -96,7 +95,7 @@ Feature: Mapping courses in a feedback
|
|||
And I should not see "Answer the questions..."
|
||||
And I log out
|
||||
And I log in as "user2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I click on "Course feedback" "link" in the "Feedback" "block"
|
||||
And I follow "Answer the questions..."
|
||||
And I should not see "Acceptance test site" in the ".feedback_form" "css_element"
|
||||
|
@ -109,7 +108,7 @@ Feature: Mapping courses in a feedback
|
|||
And I log out
|
||||
And I log in as "manager"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course feedback"
|
||||
And I follow "Course feedback"
|
||||
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "All courses" in the "#feedback_course_filter [data-fieldtype=autocomplete] .form-autocomplete-selection [role=listitem]" "css_element"
|
||||
|
@ -148,11 +147,11 @@ Feature: Mapping courses in a feedback
|
|||
And I should see "You can only access this feedback from a course"
|
||||
And I should not see "Answer the questions..."
|
||||
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Feedback" "block" should not exist
|
||||
And I should not see "Course feedback"
|
||||
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I click on "Course feedback" "link" in the "Feedback" "block"
|
||||
And I follow "Answer the questions..."
|
||||
And I should not see "Acceptance test site" in the ".feedback_form" "css_element"
|
||||
|
@ -166,7 +165,7 @@ Feature: Mapping courses in a feedback
|
|||
And I should not see "Answer the questions..."
|
||||
And I log out
|
||||
And I log in as "user2"
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I click on "Course feedback" "link" in the "Feedback" "block"
|
||||
And I follow "Answer the questions..."
|
||||
And I should not see "Acceptance test site" in the ".feedback_form" "css_element"
|
||||
|
@ -178,7 +177,7 @@ Feature: Mapping courses in a feedback
|
|||
And I press "Continue"
|
||||
And I log out
|
||||
And I log in as "user3"
|
||||
And I am on course page "Course 3"
|
||||
And I am on "Course 3" course homepage
|
||||
And I click on "Course feedback" "link" in the "Feedback" "block"
|
||||
And I follow "Answer the questions..."
|
||||
And I should not see "Acceptance test site" in the ".feedback_form" "css_element"
|
||||
|
@ -237,6 +236,6 @@ Feature: Mapping courses in a feedback
|
|||
And I follow "Turn editing off"
|
||||
And I am on site homepage
|
||||
Then "Feedback" "block" should not exist
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Feedback" "block" should not exist
|
||||
And I log out
|
||||
|
|
|
@ -22,7 +22,7 @@ Feature: Exporting and importing feedbacks
|
|||
|
||||
Scenario: Export sample feedback and compare with the fixture
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Information" question to the feedback with:
|
||||
|
@ -74,7 +74,7 @@ Feature: Exporting and importing feedbacks
|
|||
@javascript @_file_upload
|
||||
Scenario: Import feedback deleting old items
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Numeric answer" question to the feedback with:
|
||||
|
@ -101,7 +101,7 @@ Feature: Exporting and importing feedbacks
|
|||
@javascript @_file_upload
|
||||
Scenario: Import feedback appending new items
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Numeric answer" question to the feedback with:
|
||||
|
|
|
@ -65,8 +65,8 @@ Feature: Feedbacks in courses with groups
|
|||
@javascript
|
||||
Scenario: Non anonymous feedback with groups in a course
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Multiple choice" question to the feedback with:
|
||||
| Question | Do you like this course? |
|
||||
|
@ -91,8 +91,8 @@ Feature: Feedbacks in courses with groups
|
|||
| I don't know | 1 |
|
||||
# View analysis, user1 should only see one group - group 1
|
||||
And I log in as "user1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Submitted answers"
|
||||
And I should see "Separate groups: Group 1"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -101,8 +101,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# View analysis, user3 should only see one group - group 2
|
||||
And I log in as "user3"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Submitted answers"
|
||||
And I should see "Separate groups: Group 2"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -111,8 +111,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# View analysis, user2 should see a group selector and be able to change the group but not view all.
|
||||
And I log in as "user2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Submitted answers"
|
||||
And the field "Separate groups" matches value "Group 1"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -126,8 +126,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# User without group can see all participants only
|
||||
And I log in as "user7"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Submitted answers"
|
||||
And I should see "Separate groups: All participants"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -137,8 +137,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# Teacher can browse everybody
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And the field "Separate groups" matches value "All participants"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -168,8 +168,8 @@ Feature: Feedbacks in courses with groups
|
|||
@javascript
|
||||
Scenario: Anonymous feedback with groups in a course
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course anon feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course anon feedback"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Multiple choice" question to the feedback with:
|
||||
| Question | Do you like this course? |
|
||||
|
@ -181,8 +181,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log in as "user1" and complete feedback "Course anon feedback" in course "Course 1" with:
|
||||
| Not at all | 1 |
|
||||
And I log in as "user1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course anon feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course anon feedback"
|
||||
And I follow "Submitted answers"
|
||||
And I should see "There are insufficient responses for this group"
|
||||
And I should not see "Yes of course"
|
||||
|
@ -201,8 +201,8 @@ Feature: Feedbacks in courses with groups
|
|||
| I don't know | 1 |
|
||||
# View analysis, user1 should only see one group - group 1
|
||||
And I log in as "user1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course anon feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course anon feedback"
|
||||
And I follow "Submitted answers"
|
||||
And I should see "Separate groups: Group 1"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -211,8 +211,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# View analysis, user3 should only see one group - group 2
|
||||
And I log in as "user3"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course anon feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course anon feedback"
|
||||
And I follow "Submitted answers"
|
||||
And I should see "Separate groups: Group 2"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -221,8 +221,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# View analysis, user2 should see a group selector and be able to change the group but not view all.
|
||||
And I log in as "user2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course anon feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course anon feedback"
|
||||
And I follow "Submitted answers"
|
||||
And the field "Separate groups" matches value "Group 1"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -236,8 +236,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# User without group can see all participants only
|
||||
And I log in as "user7"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course anon feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course anon feedback"
|
||||
And I follow "Submitted answers"
|
||||
And I should see "Separate groups: All participants"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
@ -247,8 +247,8 @@ Feature: Feedbacks in courses with groups
|
|||
And I log out
|
||||
# Teacher can browse everybody
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on course page "Course anon feedback"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course anon feedback"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And the field "Separate groups" matches value "All participants"
|
||||
And I show chart data for the "multichoice1" feedback
|
||||
|
|
|
@ -22,7 +22,7 @@ Feature: Testing multichoice questions in feedback
|
|||
| activity | name | course | idnumber |
|
||||
| feedback | Learning experience | C1 | feedback0 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
|
||||
|
@ -57,7 +57,7 @@ Feature: Testing multichoice questions in feedback
|
|||
| Contents | this is the third page of the feedback |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
# Examine the first page, select nothing, go to the next page
|
||||
|
@ -124,7 +124,7 @@ Feature: Testing multichoice questions in feedback
|
|||
# Student 2 tries to trick - he answers the third question and then
|
||||
# goes back and changes dependency question. Analysis should not show this answer!
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
And I set the field "option a" to "1"
|
||||
|
@ -139,7 +139,7 @@ Feature: Testing multichoice questions in feedback
|
|||
And I log out
|
||||
# Login as teacher and check analysis
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "Submitted answers: 2"
|
||||
|
@ -201,7 +201,7 @@ Feature: Testing multichoice questions in feedback
|
|||
And I log out
|
||||
# Login as the first student.
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
# Examine the first page, select nothing, go to the next page
|
||||
|
@ -266,7 +266,7 @@ Feature: Testing multichoice questions in feedback
|
|||
# Student 2 tries to trick - he answers the third question and then
|
||||
# goes back and changes dependency question. Analysis should not show this answer!
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
And I set the field "option a" to "1"
|
||||
|
@ -283,7 +283,7 @@ Feature: Testing multichoice questions in feedback
|
|||
And I log out
|
||||
# Login as teacher and check analysis
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "Submitted answers: 2"
|
||||
|
@ -343,7 +343,7 @@ Feature: Testing multichoice questions in feedback
|
|||
| Contents | this is the third page of the feedback |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
# Examine the first page, select nothing, go to the next page
|
||||
|
@ -391,7 +391,7 @@ Feature: Testing multichoice questions in feedback
|
|||
# Student 2 tries to trick - he answers the third question and then
|
||||
# goes back and changes dependency question. Analysis should not show this answer!
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
And I set the field "this is a multiple choice 1" to "option a"
|
||||
|
@ -406,7 +406,7 @@ Feature: Testing multichoice questions in feedback
|
|||
And I log out
|
||||
# Login as teacher and check analysis
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "Submitted answers: 2"
|
||||
|
|
|
@ -109,7 +109,7 @@ Feature: Non anonymous feedback
|
|||
@javascript
|
||||
Scenario: Non anonymous feedback in a course
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Multiple choice" question to the feedback with:
|
||||
|
@ -120,7 +120,7 @@ Feature: Non anonymous feedback
|
|||
| Multiple choice values | Yes of course\nNot at all\nI don't know |
|
||||
And I log out
|
||||
And I log in as "user1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Answer the questions..."
|
||||
And I should see "Do you like this course?"
|
||||
|
@ -129,7 +129,7 @@ Feature: Non anonymous feedback
|
|||
And I press "Submit your answers"
|
||||
And I log out
|
||||
And I log in as "user2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Answer the questions..."
|
||||
And I should see "Do you like this course?"
|
||||
|
@ -146,7 +146,7 @@ Feature: Non anonymous feedback
|
|||
And I should see "1 (50.00 %)" in the "Not at all" "table_row"
|
||||
And I log out
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course feedback"
|
||||
And I follow "Preview"
|
||||
And I should see "Do you like this course?"
|
||||
|
|
|
@ -23,7 +23,7 @@ Feature: Test creating different types of feedback questions for anonymous feedb
|
|||
| activity | name | course | idnumber |
|
||||
| feedback | Learning experience | C1 | feedback0 |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Information" question to the feedback with:
|
||||
|
@ -67,7 +67,7 @@ Feature: Test creating different types of feedback questions for anonymous feedb
|
|||
| Maximum characters accepted | 200 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
And I set the following fields to these values:
|
||||
|
@ -82,7 +82,7 @@ Feature: Test creating different types of feedback questions for anonymous feedb
|
|||
And I press "Submit your answers"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
And I set the following fields to these values:
|
||||
|
@ -97,14 +97,14 @@ Feature: Test creating different types of feedback questions for anonymous feedb
|
|||
And I press "Submit your answers"
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "Submitted answers: 2"
|
||||
And I should see "Questions: 8"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "C1" in the "(info)" "table"
|
||||
|
|
|
@ -23,7 +23,7 @@ Feature: Test creating different types of feedback questions for non-anonymous f
|
|||
| activity | name | course | idnumber | anonymous |
|
||||
| feedback | Learning experience | C1 | feedback0 | 2 |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Information" question to the feedback with:
|
||||
|
@ -71,7 +71,7 @@ Feature: Test creating different types of feedback questions for non-anonymous f
|
|||
| Maximum characters accepted | 200 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
And I set the following fields to these values:
|
||||
|
@ -86,7 +86,7 @@ Feature: Test creating different types of feedback questions for non-anonymous f
|
|||
And I press "Submit your answers"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I follow "Answer the questions..."
|
||||
And I set the following fields to these values:
|
||||
|
@ -101,14 +101,14 @@ Feature: Test creating different types of feedback questions for non-anonymous f
|
|||
And I press "Submit your answers"
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "Submitted answers: 2"
|
||||
And I should see "Questions: 9"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience"
|
||||
And I navigate to "Analysis" in current page administration
|
||||
And I should see "C1" in the "(info)" "table"
|
||||
|
|
|
@ -38,8 +38,7 @@ Feature: Show users who have not responded to the feedback survey
|
|||
Scenario: See users who have not responded
|
||||
# Set up a feedback.
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Feedback" to section "1" and I fill the form with:
|
||||
| Name | Frogs |
|
||||
| Description | x |
|
||||
|
@ -55,7 +54,7 @@ Feature: Show users who have not responded to the feedback survey
|
|||
|
||||
# Go in as student 1 and do the feedback.
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Frogs"
|
||||
And I follow "Answer the questions"
|
||||
And I set the field "Y/N?" to "Y"
|
||||
|
@ -64,7 +63,7 @@ Feature: Show users who have not responded to the feedback survey
|
|||
|
||||
# Go in as teacher and check the users who haven't completed it.
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Frogs"
|
||||
And I navigate to "Show non-respondents" in current page administration
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
| feedback | Another feedback in course 1 | C1 | feedback2 |
|
||||
| feedback | Learning experience course 2 | C2 | feedback3 |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience course 1"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Multiple choice" question to the feedback with:
|
||||
|
@ -39,7 +39,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
Scenario: Teacher can save template and re-use it in the same course only
|
||||
# Go to feedback templates and make sure none exist yet
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience course 1"
|
||||
And I follow "Templates"
|
||||
Then I should see "No templates available yet"
|
||||
|
@ -55,7 +55,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
And I should see "Template saved"
|
||||
And the "Use a template" select box should contain "My first template"
|
||||
# Create a feedback from this template in the same course
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Another feedback in course 1"
|
||||
And I follow "Templates"
|
||||
And I set the field "Use a template" to "My first template"
|
||||
|
@ -65,7 +65,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
And I follow "Edit questions"
|
||||
And I should see "this is a multiple choice 1"
|
||||
# Make sure this template is not available in another course
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I follow "Learning experience course 2"
|
||||
And I follow "Templates"
|
||||
And I should see "No templates available yet"
|
||||
|
@ -75,13 +75,13 @@ Feature: Saving, using and deleting feedback templates
|
|||
Scenario: Teacher can append template to existing questions or remove them
|
||||
# Save feedback as a course template
|
||||
When I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience course 1"
|
||||
And I follow "Templates"
|
||||
And I set the field "Name" to "My first template"
|
||||
And I press "Save as new template"
|
||||
# Add questions to another feedback
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Another feedback in course 1"
|
||||
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
||||
And I add a "Multiple choice" question to the feedback with:
|
||||
|
@ -110,7 +110,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
|
||||
Scenario: Manager can save template as public and it will be available in any course
|
||||
When I log in as "manager"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience course 1"
|
||||
And I follow "Templates"
|
||||
And I set the field "Name" to "My first template"
|
||||
|
@ -118,7 +118,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
And I press "Save as new template"
|
||||
And I log out
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I follow "Learning experience course 2"
|
||||
And I follow "Templates"
|
||||
And I set the field "Use a template" to "My first template"
|
||||
|
@ -132,7 +132,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
Scenario: Teacher can delete course templates but can not delete public templates
|
||||
# Save feedback as both public and course template
|
||||
When I log in as "manager"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience course 1"
|
||||
And I follow "Templates"
|
||||
And I set the field "Name" to "My public template"
|
||||
|
@ -143,7 +143,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
And I log out
|
||||
# Login as teacher and try to delete templates
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Another feedback in course 1"
|
||||
And I follow "Templates"
|
||||
And I follow "Delete template..."
|
||||
|
@ -163,7 +163,7 @@ Feature: Saving, using and deleting feedback templates
|
|||
Scenario: Manager can delete both course and public templates
|
||||
# Save feedback as both public and course template
|
||||
When I log in as "manager"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Learning experience course 1"
|
||||
And I click on "Templates" "link" in the "[role=main]" "css_element"
|
||||
And I set the field "Name" to "My public template"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue