Commit 7d821080 authored by Mihail Geshoski's avatar Mihail Geshoski
Browse files

MDL-72093 navigation: Update behat tests

parent ecf8e77f
......@@ -29,7 +29,7 @@ Feature: Allow choice preview
Scenario: Enable the choice preview option and view the activity as a student before the opening time
And I follow "Choice name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| timeopen[enabled] | 1 |
| timeclose[enabled] | 1 |
......
......@@ -25,7 +25,7 @@ Feature: Restrict availability of the choice module to a deadline
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 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 navigate to "Settings" in current page administration
And I set the following fields to these values:
| timeopen[enabled] | 1 |
| timeopen[day] | 30 |
......@@ -46,7 +46,7 @@ Feature: Restrict availability of the choice module to a deadline
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 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 navigate to "Settings" in current page administration
And I set the following fields to these values:
| timeopen[enabled] | 1 |
| timeopen[day] | 30 |
......@@ -67,7 +67,7 @@ Feature: Restrict availability of the choice module to a deadline
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 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 navigate to "Settings" in current page administration
And I set the following fields to these values:
| timeclose[enabled] | 1 |
| timeclose[day] | 30 |
......@@ -88,7 +88,7 @@ Feature: Restrict availability of the choice module to a deadline
| choice | Choice name | Choice Description | C1 | choice1 | Option 1, Option 2 | 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 navigate to "Settings" in current page administration
And I set the following fields to these values:
| timeclose[enabled] | 1 |
| timeclose[day] | 30 |
......
......@@ -29,7 +29,7 @@ Feature: Choice with no calendar capabilites
Given I log in as "admin"
And I am on "Course 1" course homepage
And I follow "Test choice name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| id_timeopen_enabled | 1 |
| id_timeopen_day | 1 |
......@@ -44,7 +44,7 @@ Feature: Choice with no calendar capabilites
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I follow "Test choice name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| id_timeopen_year | 2018 |
| id_timeclose_year | 2018 |
......
......@@ -26,7 +26,7 @@ Feature: Limit choice responses
And I log in as "teacher1"
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 navigate to "Settings" in current page administration
And I set the field "Limit 1" to "1"
And I press "Save and display"
And I log out
......@@ -48,7 +48,7 @@ Feature: Limit choice responses
And I log in as "teacher1"
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 navigate to "Settings" in current page administration
And I set the following fields to these values:
| Limit the number of responses allowed | No |
And I press "Save and return to course"
......
......@@ -40,7 +40,7 @@ Feature: Teacher can modify choices of the students
And I log in as "teacher1"
And I change window size to "large"
And I am on the "Choice name" "choice activity" page
And I navigate to "View 1 responses" in current page administration
And I navigate to "Responses" in current page administration
And I click on "Student 1 Option 1" "checkbox"
And I select "Delete" from the "With selected" singleselect
And "Student 1 Option 1" "checkbox" should not exist
......@@ -60,7 +60,7 @@ Feature: Teacher can modify choices of the students
And I log out
And I change window size to "large"
And I am on the "Choice name" "choice activity" page logged in as teacher1
And I navigate to "View 1 responses" in current page administration
And I navigate to "Responses" in current page administration
And I click on "Student 1 Option 1" "checkbox"
And I click on "Student 2 Not answered yet" "checkbox"
And I click on "Student 3 Not answered yet" "checkbox"
......@@ -85,7 +85,7 @@ Feature: Teacher can modify choices of the students
And I log out
And I change window size to "large"
And I am on the "Choice name" "choice activity" page logged in as teacher1
And I navigate to "View 1 responses" in current page administration
And I navigate to "Responses" in current page administration
And I click on "Student 1 Option 2" "checkbox"
And I select "Delete" from the "With selected" singleselect
And I click on "Student 1 Option 1" "checkbox"
......
......@@ -46,7 +46,7 @@ Feature: Multiple option choice response
And I am on "Course 1" course homepage with editing mode on
And I follow "Choice name"
And I click on "Actions menu" "link"
And I follow "Edit settings"
And I follow "Settings"
And I set the following fields to these values:
| Limit 1 | 1 |
| Limit 2 | 1 |
......@@ -77,7 +77,7 @@ Feature: Multiple option choice response
And I should see "Limit: 1"
And I am on "Course 1" course homepage with editing mode on
And I follow "Choice name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Limit the number of responses allowed | No |
And I press "Save and return to course"
......
......@@ -22,7 +22,7 @@ Feature: Test the display of the choice module on my home
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test choice name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| timeopen[enabled] | 1 |
| timeclose[enabled] | 1 |
......
......@@ -24,7 +24,7 @@ Feature: A student can see how the results of the choice activity will be publis
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Do not publish results to students |
And I press "Save and return to course"
......@@ -40,7 +40,7 @@ Feature: A student can see how the results of the choice activity will be publis
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
And I am on "Course 1" course homepage
When I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Show results to students after they answer |
| Privacy of results | Publish full results, showing names and their choices |
......@@ -57,7 +57,7 @@ Feature: A student can see how the results of the choice activity will be publis
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
And I am on "Course 1" course homepage
When I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the field "Publish results" to "Show results to students after they answer"
And I press "Save and return to course"
And I log out
......@@ -72,7 +72,7 @@ Feature: A student can see how the results of the choice activity will be publis
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
And I am on "Course 1" course homepage
When I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the field "Publish results" to "Show results to students only after the choice is closed"
And I set the field "Privacy of results" to "Publish full results, showing names and their choices"
And I press "Save and return to course"
......@@ -88,7 +88,7 @@ Feature: A student can see how the results of the choice activity will be publis
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
And I am on "Course 1" course homepage
When I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the field "Publish results" to "Show results to students only after the choice is closed"
And I press "Save and return to course"
And I log out
......@@ -103,7 +103,7 @@ Feature: A student can see how the results of the choice activity will be publis
| choice | Choice 1 | Choice description | C1 | choice1 | Option 1, Option 2 |
And I am on "Course 1" course homepage
When I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the field "Publish results" to "Always show results to students"
And I press "Save and return to course"
And I log out
......
......@@ -30,7 +30,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
| option | Option 1, Option 2 |
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Do not publish results to students |
And I press "Save and return to course"
......@@ -53,7 +53,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
| option | Option 1, Option 2 |
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Show results to students after they answer |
And I press "Save and return to course"
......@@ -78,7 +78,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
| option | Option 1, Option 2 |
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Show results to students only after the choice is closed |
And I press "Save and return to course"
......@@ -92,7 +92,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I follow "Edit settings"
And I follow "Settings"
And I expand all fieldsets
And I set the following fields to these values:
| timeopen[enabled] | 1 |
......@@ -121,7 +121,7 @@ Feature: A teacher can choose one of 4 options for publishing choice results
| option | Option 1, Option 2 |
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Always show results to students |
And I press "Save and return to course"
......
......@@ -26,7 +26,7 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
| choice | Choice 1 | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Always show results to students |
| Privacy of results | Publish anonymous results, do not show student names |
......@@ -48,7 +48,7 @@ Feature: A teacher can choose whether to publish choice activity results anonymo
| choice | Choice 1 | Choice Description | C1 | choice1 | Option 1, Option 2 | 1 |
And I am on "Course 1" course homepage
And I follow "Choice 1"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Publish results | Always show results to students |
| Privacy of results | Publish full results, showing names and their choices |
......
......@@ -37,7 +37,7 @@ Feature: Update a choice activity removing options
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
And I navigate to "Settings" in current page administration
And I set the field "option[2]" to ""
And I press "Save and display"
Then I should see "View 1 responses"
......@@ -29,7 +29,7 @@ Feature: Database with no calendar capabilites
| data | Test database name | Test database description | C1 | 1 | data1 |
And I am on "Course 1" course homepage
And I follow "Test database name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| id_timeavailablefrom_enabled | 1 |
| id_timeavailablefrom_day | 1 |
......@@ -52,7 +52,7 @@ Feature: Database with no calendar capabilites
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I follow "Test database name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| id_timeavailablefrom_year | 2018 |
| id_timeavailableto_year | 2018 |
......
......@@ -237,7 +237,7 @@ Feature: Anonymous feedback
Scenario: Collecting new non-anonymous feedback from a previously anonymous feedback activity
When I am on the "Course feedback" "feedback activity" page logged in as teacher
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Allow multiple submissions | Yes |
And I press "Save and display"
......
......@@ -29,7 +29,7 @@ Feature: Feedback with no calendar capabilites
And I log in as "admin"
And I am on "Course 1" course homepage
And I follow "Test feedback name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| id_timeopen_enabled | 1 |
| id_timeopen_day | 1 |
......@@ -44,7 +44,7 @@ Feature: Feedback with no calendar capabilites
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I follow "Test feedback name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| id_timeopen_year | 2018 |
| id_timeclose_year | 2018 |
......
......@@ -24,7 +24,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add the "Latest announcements" block
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I expand all fieldsets
And I set the field "id_newsitems" to "1"
And I press "Save and display"
......
......@@ -134,7 +134,7 @@ Feature: A user can control their own subscription preferences for a discussion
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
And I log out
And I am on the "Test forum name" "forum activity" page logged in as admin
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Auto subscription |
And I press "Save and return to course"
......@@ -178,7 +178,7 @@ Feature: A user can control their own subscription preferences for a discussion
And I log out
And I log in as "admin"
And I am on the "Test forum name" "forum activity" page
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Auto subscription |
And I press "Save and return to course"
......
......@@ -91,7 +91,7 @@ Feature: View activity completion in the forum activity
@javascript
Scenario: Use manual completion
Given I am on the "Music history" "forum activity" page logged in as teacher1
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I expand all fieldsets
And I set the field "Completion tracking" to "Students can manually mark the activity as completed"
And I press "Save and display"
......
......@@ -27,7 +27,7 @@ Feature: A user can control their own subscription preferences for a forum
| section | 1 |
And I am on "Course 1" course homepage
Given I follow "Test forum name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Subscription disabled |
And I press "Save and return to course"
......@@ -54,7 +54,7 @@ Feature: A user can control their own subscription preferences for a forum
| section | 1 |
And I am on "Course 1" course homepage
Given I follow "Test forum name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Forced subscription |
And I press "Save and return to course"
......@@ -81,7 +81,7 @@ Feature: A user can control their own subscription preferences for a forum
| section | 1 |
And I am on "Course 1" course homepage
Given I follow "Test forum name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Optional subscription |
And I press "Save and return to course"
......@@ -110,7 +110,7 @@ Feature: A user can control their own subscription preferences for a forum
| section | 1 |
And I am on "Course 1" course homepage
Given I follow "Test forum name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Auto subscription |
And I press "Save and return to course"
......
......@@ -72,7 +72,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
| idnumber | 0001 |
| section | 1 |
And I am on the "Forced Forum 2" "forum activity" page
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Forced subscription |
| Availability | Show on course page |
......
......@@ -29,7 +29,7 @@ Feature: A teacher can control the subscription to a forum
When I log in as "teacher"
And I am on "Course 1" course homepage
And I follow "Test forum name"
And I navigate to "Edit settings" in current page administration
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Subscription mode | Auto subscription |
And I press "Save and return to course"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment