mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
|
@ -17,8 +17,7 @@ Feature: Add choice activity
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name |
|
||||
| Description | Choice Description |
|
||||
|
@ -26,7 +25,7 @@ Feature: Add choice activity
|
|||
| option[1] | Option 2 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Allow choice preview
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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
|
||||
|
||||
Scenario: Enable the choice preview option and view the activity as a student before the opening time
|
||||
Given I add a "Choice" to section "1" and I fill the form with:
|
||||
|
@ -37,7 +36,7 @@ Feature: Allow choice preview
|
|||
| Show preview | 1 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
Then I should see "This is just a preview of the available options for this activity"
|
||||
And the "choice_1" "radio" should be disabled
|
||||
|
|
|
@ -10,9 +10,7 @@ Feature: Editing choice block
|
|||
| fullname | shortname | category |
|
||||
| Course 1 | C1 | 0 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name 1 |
|
||||
| Description | Choice Description 1 |
|
||||
|
@ -43,8 +41,7 @@ Feature: Editing choice block
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name 1 |
|
||||
| Description | Choice Description 1 |
|
||||
|
@ -74,8 +71,7 @@ Feature: Editing choice block
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| teacher1 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name 1 |
|
||||
| Description | Choice Description 1 |
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Teacher can choose whether to allow students to change their choice res
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name |
|
||||
| Description | Choice Description |
|
||||
|
@ -27,14 +26,14 @@ Feature: Teacher can choose whether to allow students to change their choice res
|
|||
| option[1] | Option 2 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
And "Save my choice" "button" should not exist
|
||||
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 "Choice name"
|
||||
And I follow "Edit settings"
|
||||
And I set the following fields to these values:
|
||||
|
@ -42,7 +41,7 @@ Feature: Teacher can choose whether to allow students to change their choice res
|
|||
And I press "Save and display"
|
||||
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 "Choice name"
|
||||
And I should see "Your selection: Option 1"
|
||||
And "Save my choice" "button" should exist
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Restrict availability of the choice module to a deadline
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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
|
||||
|
||||
Scenario: Enable the choice activity with a start deadline in the future
|
||||
Given I add a "Choice" to section "1" and I fill the form with:
|
||||
|
@ -32,7 +31,7 @@ Feature: Restrict availability of the choice module to a deadline
|
|||
| timeopen[year] | 2037 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
Then I should see "Sorry, this activity is not available until"
|
||||
|
||||
|
@ -48,7 +47,7 @@ Feature: Restrict availability of the choice module to a deadline
|
|||
| timeopen[year] | 2007 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And "choice_1" "radio" should exist
|
||||
And "choice_2" "radio" should exist
|
||||
|
@ -66,7 +65,7 @@ Feature: Restrict availability of the choice module to a deadline
|
|||
| timeclose[year] | 2037 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
And "choice_1" "radio" should exist
|
||||
And "choice_2" "radio" should exist
|
||||
|
@ -84,6 +83,6 @@ Feature: Restrict availability of the choice module to a deadline
|
|||
| timeclose[year] | 2007 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice name"
|
||||
Then I should see "Sorry, this activity closed on"
|
||||
|
|
|
@ -21,8 +21,7 @@ Feature: Include responses from inactive users
|
|||
| student2 | C1 | student |
|
||||
| student3 | C1 | student |
|
||||
And 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
|
||||
|
||||
Scenario: Enable the choice include inactive option and check that responses from inactive students are visible
|
||||
Given I add a "Choice" to section "1" and I fill the form with:
|
||||
|
@ -34,22 +33,22 @@ Feature: Include responses from inactive users
|
|||
| Include responses from inactive/suspended users | Yes |
|
||||
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 choose "Option 1" from "Choice name" choice activity
|
||||
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 choose "Option 2" from "Choice name" choice activity
|
||||
And I log out
|
||||
And I log in as "student3"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 3" from "Choice name" choice activity
|
||||
And I log out
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role | status |
|
||||
| student1 | C1 | student | 1 |
|
||||
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 "Choice name"
|
||||
Then I should see "View 3 responses"
|
||||
And I follow "View 3 responses"
|
||||
|
@ -61,7 +60,7 @@ Feature: Include responses from inactive users
|
|||
| user | course | role | timestart |
|
||||
| student2 | C1 | student | 2145830400 |
|
||||
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 "Choice name"
|
||||
Then I should see "View 3 responses"
|
||||
And I follow "View 3 responses"
|
||||
|
@ -73,7 +72,7 @@ Feature: Include responses from inactive users
|
|||
| user | course | role | timeend |
|
||||
| student3 | C1 | student | 1425168000 |
|
||||
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 "Choice name"
|
||||
Then I should see "View 3 responses"
|
||||
And I follow "View 3 responses"
|
||||
|
@ -92,22 +91,22 @@ Feature: Include responses from inactive users
|
|||
| Include responses from inactive/suspended users | No |
|
||||
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 choose "Option 1" from "Choice name" choice activity
|
||||
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 choose "Option 2" from "Choice name" choice activity
|
||||
And I log out
|
||||
And I log in as "student3"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 3" from "Choice name" choice activity
|
||||
And I log out
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role | status |
|
||||
| student1 | C1 | student | 1 |
|
||||
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 "Choice name"
|
||||
Then I should see "View 2 responses"
|
||||
And I follow "View 2 responses"
|
||||
|
@ -119,7 +118,7 @@ Feature: Include responses from inactive users
|
|||
| user | course | role | timestart |
|
||||
| student2 | C1 | student | 2145830400 |
|
||||
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 "Choice name"
|
||||
Then I should see "View 1 responses"
|
||||
And I follow "View 1 responses"
|
||||
|
@ -131,7 +130,7 @@ Feature: Include responses from inactive users
|
|||
| user | course | role | timeend |
|
||||
| student3 | C1 | student | 1425168000 |
|
||||
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 "Choice name"
|
||||
Then I should see "View 0 responses"
|
||||
And I follow "View 0 responses"
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: Limit choice responses
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name |
|
||||
| Description | Choice Description |
|
||||
|
@ -30,13 +29,13 @@ Feature: Limit choice responses
|
|||
| option[1] | Option 2 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
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 "Choice name"
|
||||
And I should see "Option 1 (Full)"
|
||||
And the "choice_1" "radio" should be disabled
|
||||
|
|
|
@ -27,13 +27,13 @@ Feature: Teacher can modify choices of the students
|
|||
@javascript
|
||||
Scenario: Delete students choice response as a teacher
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
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 "Choice name"
|
||||
And I navigate to "View 1 responses" in current page administration
|
||||
And I click on "Student 1 Option 1" "checkbox"
|
||||
|
@ -45,13 +45,13 @@ Feature: Teacher can modify choices of the students
|
|||
@javascript
|
||||
Scenario: Teacher set answers of students who did not respond or change existing answers
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
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 "Choice name"
|
||||
And I navigate to "View 1 responses" in current page administration
|
||||
And I click on "Student 1 Option 1" "checkbox"
|
||||
|
@ -69,20 +69,20 @@ Feature: Teacher can modify choices of the students
|
|||
@javascript
|
||||
Scenario: Teacher can delete answers in the multiple answer choice
|
||||
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 "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the field "Allow more than one choice to be selected" to "Yes"
|
||||
And I press "Save and return to course"
|
||||
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 choose options "Option 1","Option 2" from "Choice name" choice activity
|
||||
And I should see "Your selection: Option 1; Option 2"
|
||||
And I should see "Your choice has been saved"
|
||||
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 "Choice name"
|
||||
And I navigate to "View 1 responses" in current page administration
|
||||
And I click on "Student 1 Option 2" "checkbox"
|
||||
|
@ -91,7 +91,7 @@ Feature: Teacher can modify choices of the students
|
|||
And I select "Choose: Option 3" from the "With selected" singleselect
|
||||
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 "Choice name"
|
||||
And I should see "Your selection: Option 1; Option 3"
|
||||
And I log out
|
||||
|
@ -99,13 +99,13 @@ Feature: Teacher can modify choices of the students
|
|||
@javascript
|
||||
Scenario: Teacher can manage answers on view page if the names are displayed
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
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 "Choice name"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Multiple option choice response
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name |
|
||||
| Description | Choice Description |
|
||||
|
@ -27,7 +26,7 @@ Feature: Multiple option choice response
|
|||
| option[1] | Option 2 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose options "Option 1","Option 2" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1; Option 2"
|
||||
And I should see "Your choice has been saved"
|
||||
|
@ -47,8 +46,7 @@ Feature: Multiple option choice response
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name |
|
||||
| Description | Choice Description |
|
||||
|
@ -62,13 +60,13 @@ Feature: Multiple option choice response
|
|||
| limit[2] | 1 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose options "Option 1","Option 2" from "Choice name" choice activity
|
||||
Then I should see "Your selection: Option 1; Option 2"
|
||||
And I should see "Your choice has been saved"
|
||||
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 "Choice name"
|
||||
And I should see "Option 1 (Full)"
|
||||
And I should see "Option 2 (Full)"
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Test the display of the choice module on my home
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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 "Choice" to section "1"
|
||||
And I expand all fieldsets
|
||||
And I set the following fields to these values:
|
||||
|
@ -37,32 +36,20 @@ Feature: Test the display of the choice module on my home
|
|||
And I press "Save and return to course"
|
||||
And I log out
|
||||
|
||||
Scenario: View my home as a student before answering the choice
|
||||
Given I log in as "student1"
|
||||
Then I should see "You have Choices that need attention"
|
||||
And I should see "Not answered yet"
|
||||
And I log out
|
||||
|
||||
Scenario: View my home as a student after answering the choice
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Test choice name" choice activity
|
||||
And I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
And "Save my choice" "button" should not exist
|
||||
When I follow "Dashboard"
|
||||
Then I should not see "You have Choices that need attention"
|
||||
And I log out
|
||||
|
||||
Scenario: View my home as a teacher
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Test choice name" choice activity
|
||||
And I should see "Your selection: Option 1"
|
||||
And I should see "Your choice has been saved"
|
||||
And "Save my choice" "button" should not exist
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
Then I should see "You have Choices that need attention"
|
||||
And I should see "View 1 responses"
|
||||
And I log out
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And 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
|
||||
|
||||
Scenario: Do not publish results to students
|
||||
Given I add a "Choice" to section "1" and I fill the form with:
|
||||
|
@ -29,7 +28,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
|||
| option[1] | Option 2 |
|
||||
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
|
||||
When I choose "Option 1" from "Choice 1" choice activity
|
||||
Then I should see "Your selection: Option 1"
|
||||
And I should not see "Responses"
|
||||
|
@ -44,10 +43,10 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
|||
| Publish results | Show results to students after they answer |
|
||||
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
|
||||
When I follow "Choice 1"
|
||||
Then I should not see "Responses"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I choose "Option 1" from "Choice 1" choice activity
|
||||
And I should see "Your selection: Option 1"
|
||||
And I should see "Responses"
|
||||
|
@ -61,13 +60,13 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
|||
| option[1] | Option 2 |
|
||||
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
|
||||
When I follow "Choice 1"
|
||||
Then I should not see "Responses"
|
||||
And I choose "Option 1" from "Choice 1" choice activity
|
||||
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 "Choice 1"
|
||||
And I follow "Edit settings"
|
||||
And I expand all fieldsets
|
||||
|
@ -83,7 +82,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
|||
And I press "Save and return to course"
|
||||
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 "Choice 1"
|
||||
And I should see "Responses"
|
||||
|
||||
|
@ -96,6 +95,6 @@ Feature: A teacher can choose one of 4 options for publishing choice results
|
|||
| Publish results | Always show results to students |
|
||||
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
|
||||
When I follow "Choice 1"
|
||||
And I should see "Responses"
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And 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
|
||||
|
||||
Scenario: Publish anonymous results
|
||||
Given I add a "Choice" to section "1" and I fill the form with:
|
||||
|
@ -32,11 +31,11 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
|
|||
| Privacy of results | Publish anonymous results, do not show student names |
|
||||
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 choose "Option 1" from "Choice 1" choice activity
|
||||
And I log out
|
||||
When I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
Then I should not see "Student 1"
|
||||
And I should not see "Users who chose this option"
|
||||
|
@ -51,11 +50,11 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
|
|||
| Privacy of results | Publish full results, showing names and their choices |
|
||||
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 choose "Option 1" from "Choice 1" choice activity
|
||||
And I log out
|
||||
When I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Choice 1"
|
||||
Then I should see "Student 1"
|
||||
And I should see "Users who chose this option"
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: Update a choice activity removing options
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And 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 "Choice" to section "1" and I fill the form with:
|
||||
| Choice name | Choice name |
|
||||
| Description | Choice Description |
|
||||
|
@ -29,19 +28,19 @@ Feature: Update a choice activity removing options
|
|||
| option[2] | Option 3 |
|
||||
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 choose "Option 3" from "Choice name" choice activity
|
||||
And I should see "Your selection: Option 3"
|
||||
And I should see "Your choice has been saved"
|
||||
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 choose "Option 2" from "Choice name" choice activity
|
||||
And I should see "Your selection: Option 2"
|
||||
And I should see "Your choice has been saved"
|
||||
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 "Choice name"
|
||||
And I should see "View 2 responses"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue