MDL-71915 mod_forum: Update behat tests
Update behat tests to accommodate the changes made for tertiary navigation.
This commit is contained in:
@@ -22,18 +22,18 @@ Feature: Use core page resolvers for the I am on the page steps
|
||||
Then I should see "<shouldsee>"
|
||||
|
||||
Examples:
|
||||
| description | identifier | type | shouldsee |
|
||||
| Course Category idnumber | CAT1 | category | Add a new course |
|
||||
| Course Category name | "Cat 1" | Category | Add a new course |
|
||||
| Course Full name | "Economics 101" | course | Fundamentals of Economics |
|
||||
| Course Short name | ECON101 | COURSE | Fundamentals of Economics |
|
||||
| Course idnumber | "2021-econ101" | Course | Fundamentals of Economics |
|
||||
| Forum idnumber | fundamentalsofeconomics | Activity | Add a new discussion |
|
||||
| Generic activity editing | fundamentalsofeconomics | "Activity editing" | Updating: Forum |
|
||||
| Forum name | "Fundamentals of Economics" | "Forum activity" | Add a new discussion |
|
||||
| Forum name editing | "Fundamentals of Economics" | "Forum activity editing" | Updating: Forum |
|
||||
| Forum name permissions | "Fundamentals of Economics" | "Forum activity permissions" | Permissions in Forum: Fun |
|
||||
| Forum name roles | "Fundamentals of Economics" | "Forum activity roles" | Assign roles in Forum: Fun |
|
||||
| description | identifier | type | shouldsee |
|
||||
| Course Category idnumber | CAT1 | category | Add a new course |
|
||||
| Course Category name | "Cat 1" | Category | Add a new course |
|
||||
| Course Full name | "Economics 101" | course | Fundamentals of Economics |
|
||||
| Course Short name | ECON101 | COURSE | Fundamentals of Economics |
|
||||
| Course idnumber | "2021-econ101" | Course | Fundamentals of Economics |
|
||||
| Forum idnumber | fundamentalsofeconomics | Activity | Add discussion topic |
|
||||
| Generic activity editing | fundamentalsofeconomics | "Activity editing" | Updating: Forum |
|
||||
| Forum name | "Fundamentals of Economics" | "Forum activity" | Add discussion topic |
|
||||
| Forum name editing | "Fundamentals of Economics" | "Forum activity editing" | Updating: Forum |
|
||||
| Forum name permissions | "Fundamentals of Economics" | "Forum activity permissions" | Permissions in Forum: Fun |
|
||||
| Forum name roles | "Fundamentals of Economics" | "Forum activity roles" | Assign roles in Forum: Fun |
|
||||
|
||||
Scenario Outline: When I am on an instance logged in as
|
||||
Given the following "categories" exist:
|
||||
@@ -58,9 +58,9 @@ Feature: Use core page resolvers for the I am on the page steps
|
||||
| Course Full name | "Economics 101" | course | Fundamentals of Economics |
|
||||
| Course Short name | ECON101 | COURSE | Fundamentals of Economics |
|
||||
| Course idnumber | "2021-econ101" | Course | Fundamentals of Economics |
|
||||
| Forum idnumber | fundamentalsofeconomics | Activity | Add a new discussion |
|
||||
| Forum idnumber | fundamentalsofeconomics | Activity | Add discussion topic |
|
||||
| Generic activity editing | fundamentalsofeconomics | "Activity editing" | Updating: Forum |
|
||||
| Forum name | "Fundamentals of Economics" | "Forum activity" | Add a new discussion |
|
||||
| Forum name | "Fundamentals of Economics" | "Forum activity" | Add discussion topic |
|
||||
| Forum name editing | "Fundamentals of Economics" | "Forum activity editing" | Updating: Forum |
|
||||
| Forum name permissions | "Fundamentals of Economics" | "Forum activity permissions" | Permissions in Forum: Fun |
|
||||
| Forum name roles | "Fundamentals of Economics" | "Forum activity roles" | Assign roles in Forum: Fun |
|
||||
|
||||
@@ -16,7 +16,9 @@ Feature: Change number of discussions displayed
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Add a new discussion topic"
|
||||
And I turn editing mode on
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 10 |
|
||||
| Message | This is forum post ten |
|
||||
@@ -24,7 +26,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 9 |
|
||||
| Message | This is forum post nine |
|
||||
@@ -32,7 +35,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 8 |
|
||||
| Message | This is forum post eight |
|
||||
@@ -40,7 +44,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 7 |
|
||||
| Message | This is forum post seven |
|
||||
@@ -48,7 +53,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 6 |
|
||||
| Message | This is forum post six |
|
||||
@@ -56,7 +62,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 5 |
|
||||
| Message | This is forum post five |
|
||||
@@ -64,7 +71,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 4 |
|
||||
| Message | This is forum post four |
|
||||
@@ -72,7 +80,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 3 |
|
||||
| Message | This is forum post three |
|
||||
@@ -80,7 +89,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 2 |
|
||||
| Message | This is forum post two |
|
||||
@@ -88,7 +98,8 @@ Feature: Change number of discussions displayed
|
||||
And I wait to be redirected
|
||||
And I am on "Course 1" course homepage
|
||||
And I wait "1" seconds
|
||||
And I follow "Add a new discussion topic"
|
||||
And I click on "Social forum" "link"
|
||||
And I follow "Add discussion topic"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum Post 1 |
|
||||
| Message | This is forum post one |
|
||||
|
||||
@@ -39,22 +39,22 @@ Feature: Context freezing apply to child contexts
|
||||
Scenario: Freeze course module module should freeze just that module
|
||||
Given I am on the "courseaa1" "Course" page logged in as "admin"
|
||||
And I follow "faa1"
|
||||
And "Add a new discussion topic" "link" should exist
|
||||
And "Add discussion topic" "link" should exist
|
||||
When I follow "Freeze this context"
|
||||
And I click on "Continue" "button"
|
||||
Then "Add a new discussion topic" "link" should not exist
|
||||
Then "Add discussion topic" "link" should not exist
|
||||
When I am on "courseaa1" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "faa1b"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseaa2" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "faa2"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseb" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
And I log out
|
||||
When I am on the "courseaa1" "Course" page logged in as "teacher"
|
||||
@@ -63,15 +63,15 @@ Feature: Context freezing apply to child contexts
|
||||
When I am on "courseaa1" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "faa1b"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseaa2" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "faa2"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseb" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "fb"
|
||||
And "Add a new discussion topic" "link" should exist
|
||||
And "Add discussion topic" "link" should exist
|
||||
|
||||
And I log out
|
||||
When I am on the "courseaa1" "Course" page logged in as "student1"
|
||||
@@ -79,13 +79,13 @@ Feature: Context freezing apply to child contexts
|
||||
Then "Add a new discussion topic" "link" should not exist
|
||||
When I am on "courseaa1" course homepage
|
||||
When I follow "faa1b"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseaa2" course homepage
|
||||
When I follow "faa2"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseb" course homepage
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
Scenario: Freeze course should freeze all children
|
||||
Given I am on the "courseaa1" "Course" page logged in as "admin"
|
||||
@@ -103,11 +103,11 @@ Feature: Context freezing apply to child contexts
|
||||
When I am on "courseaa2" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "faa2"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseb" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
And I log out
|
||||
When I am on the "courseaa1" "Course" page logged in as "teacher"
|
||||
@@ -120,11 +120,11 @@ Feature: Context freezing apply to child contexts
|
||||
When I am on "courseaa2" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "faa2"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseb" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
And I log out
|
||||
When I am on the "courseaa1" "Course" page logged in as "student1"
|
||||
@@ -135,10 +135,10 @@ Feature: Context freezing apply to child contexts
|
||||
Then "Add a new discussion topic" "link" should not exist
|
||||
When I am on "courseaa2" course homepage
|
||||
When I follow "faa2"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
When I am on "courseb" course homepage
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
Scenario: Freeze course category should freeze all children
|
||||
Given I log in as "admin"
|
||||
@@ -162,7 +162,7 @@ Feature: Context freezing apply to child contexts
|
||||
When I am on "courseb" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
And I log out
|
||||
When I am on the "courseaa1" "Course" page logged in as "teacher"
|
||||
@@ -180,7 +180,7 @@ Feature: Context freezing apply to child contexts
|
||||
When I am on "courseb" course homepage
|
||||
Then edit mode should be available on the current page
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
And I log out
|
||||
When I am on the "courseaa1" "Course" page logged in as "student1"
|
||||
@@ -194,4 +194,4 @@ Feature: Context freezing apply to child contexts
|
||||
Then "Add a new discussion topic" "link" should not exist
|
||||
When I am on "courseb" course homepage
|
||||
When I follow "fb"
|
||||
Then "Add a new discussion topic" "link" should exist
|
||||
Then "Add discussion topic" "link" should exist
|
||||
|
||||
@@ -41,7 +41,7 @@ Feature: Message users in the summary report
|
||||
| user | course | role |
|
||||
| student3 | C1 | student |
|
||||
When I am on the forum1 "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
And I click on "Select 'Student 1'" "checkbox"
|
||||
And I click on "Select 'Student 3'" "checkbox"
|
||||
And I set the field "With selected users..." to "Send a message"
|
||||
@@ -61,7 +61,7 @@ Feature: Message users in the summary report
|
||||
@javascript
|
||||
Scenario: Message all users
|
||||
When I am on the forum1 "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
And I click on "Select all" "checkbox"
|
||||
And I set the field "With selected users..." to "Send a message"
|
||||
Then I should see "Send message to 3 people"
|
||||
@@ -71,6 +71,6 @@ Feature: Message users in the summary report
|
||||
Given the following config values are set as admin:
|
||||
| messaging | 0 |
|
||||
When I am on the forum1 "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then I should not see "With selected users..."
|
||||
And I should not see "Select all"
|
||||
|
||||
@@ -56,7 +56,7 @@ Feature: Course level forum summary report
|
||||
|
||||
Scenario: Course forum summary report can be viewed by teacher and contains accurate data
|
||||
When I am on the forum2 "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
And I should see "Export posts"
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies | | |
|
||||
@@ -91,7 +91,7 @@ Feature: Course level forum summary report
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "forum1"
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies | | |
|
||||
| First name / Surname | -2- | -3- | Earliest post | Most recent post |
|
||||
|
||||
@@ -47,7 +47,7 @@ Feature: forum report shows post/reply/word counts correctly
|
||||
When I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "forum1"
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Teacher 1" row "Number of attachments" column of "forumreport_summary_table" table should contain "6"
|
||||
And "Student 1" row "Number of attachments" column of "forumreport_summary_table" table should contain "5"
|
||||
And "Student 1" row "Word count" column of "forumreport_summary_table" table should contain "4"
|
||||
|
||||
@@ -42,7 +42,7 @@ Feature: Include private replies in the summary report
|
||||
|
||||
Scenario: Private replies are counted for Teacher
|
||||
When I am on the forum1 "forum activity" page logged in as teacher2
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Teacher 1" row "Number of replies posted" column of "forumreport_summary_table" table should contain "3"
|
||||
|
||||
Scenario: Private replies are not counted when Teacher has not capability
|
||||
@@ -50,5 +50,5 @@ Feature: Include private replies in the summary report
|
||||
| capability | permission | role | contextlevel | reference |
|
||||
| mod/forum:readprivatereplies | Prevent | editingteacher | Course | C1 |
|
||||
When I am on the forum1 "forum activity" page logged in as teacher2
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Teacher 1" row "Number of replies posted" column of "forumreport_summary_table" table should contain "2"
|
||||
|
||||
@@ -34,7 +34,7 @@ Feature: Report relevant content availability
|
||||
@javascript
|
||||
Scenario: Teachers can access report data about other users by default
|
||||
Given I am on the "forum1" "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then the following should exist in the "forumreport_summary_table" table:
|
||||
| -2- | -3- | -4- | -5- | -6- | -7- | -8- |
|
||||
| Student 1 | 1 | 1 | 5 | 0 | 3 | 14 |
|
||||
@@ -64,7 +64,7 @@ Feature: Report relevant content availability
|
||||
| capability | permission | role | contextlevel | reference |
|
||||
| forumreport/summary:view | Allow | student | Course | C1 |
|
||||
When I am on the "forum1" "forum activity" page logged in as student1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then the following should exist in the "forumreport_summary_table" table:
|
||||
| -1- | -2- | -3- | -4- | -5- | -6- | -7- |
|
||||
| Student 1 | 1 | 1 | 5 | 1 | 3 | 14 |
|
||||
|
||||
@@ -42,7 +42,7 @@ Feature: Attachments count column data available
|
||||
| user | forum | name | message | attachments | inlineattachments |
|
||||
| teacher1 | forum1 | discussion1 | message1 | att1.jpg, att2.txt | |
|
||||
When I am on the forum1C1 "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Teacher 1" row "Number of attachments" column of "forumreport_summary_table" table should contain "6"
|
||||
And "Student 1" row "Number of attachments" column of "forumreport_summary_table" table should contain "5"
|
||||
And "Student 2" row "Number of attachments" column of "forumreport_summary_table" table should contain "0"
|
||||
|
||||
@@ -44,7 +44,7 @@ Feature: Post date columns data available
|
||||
| teacher1 | forum1 | discussion1 | t1 other course | ##2017-01-01 03:00:00## |
|
||||
| teacher1 | forum1 | discussion2 | t1 other course | ##2019-09-13 23:59:00## |
|
||||
When I am on the forum1C1 "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Teacher 1" row "Earliest post" column of "forumreport_summary_table" table should contain "Tuesday, 2 January 2018, 9:00"
|
||||
Then "Teacher 1" row "Most recent post" column of "forumreport_summary_table" table should contain "Sunday, 1 September 2019, 7:00"
|
||||
Then "Student 1" row "Earliest post" column of "forumreport_summary_table" table should contain "Wednesday, 27 March 2019, 4:00"
|
||||
|
||||
@@ -63,7 +63,7 @@ Feature: Groups report filter is available if groups exist
|
||||
@javascript
|
||||
Scenario: All groups can be selected or cleared together in the groups filter, and are unchecked by default
|
||||
When I am on the "c1forum1" "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
@@ -111,7 +111,7 @@ Feature: Groups report filter is available if groups exist
|
||||
@javascript
|
||||
Scenario: The summary report can be filtered by a subset of groups, and re-ordering the results retains the filter
|
||||
When I am on the "c1forum1" "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
@@ -145,7 +145,7 @@ Feature: Groups report filter is available if groups exist
|
||||
@javascript
|
||||
Scenario: The summary report can be filtered as a mixture of groups and no groups
|
||||
When I am on the "c1forum2" "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
@@ -169,7 +169,7 @@ Feature: Groups report filter is available if groups exist
|
||||
@javascript
|
||||
Scenario: The summary report can be filtered by no groups only
|
||||
When I am on the "c1forum2" "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
| First name / Surname | -3- | -4- |
|
||||
@@ -192,7 +192,7 @@ Feature: Groups report filter is available if groups exist
|
||||
Scenario: Filtering by a group containing no users still allows the page to render
|
||||
# Log in as admin so Teacher 1 not existing on page can be confirmed.
|
||||
When I am on the "c1forum1" "forum activity" page logged in as admin
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Groups" "button" should exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions | Replies |
|
||||
@@ -215,7 +215,7 @@ Feature: Groups report filter is available if groups exist
|
||||
@javascript
|
||||
Scenario: Course forum summary report can be filtered by group
|
||||
When I am on the "c1forum2" "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
And I select "All forums in course" from the "Forum selected" singleselect
|
||||
And I click on "Groups" "button"
|
||||
And I click on "Clear" "button" in the "filter-groups-popover" "region"
|
||||
|
||||
@@ -50,7 +50,7 @@ Feature: Groups report filter is not available if no groups exist
|
||||
| teacher1 | forum1 | discussion1 | D1 other course | ## 1 week ago ## |
|
||||
| teacher1 | forum1 | discussion2 | D2 other course | ## 4 days ago ## |
|
||||
When I am on the forum1C1 "forum activity" page logged in as teacher1
|
||||
And I navigate to "Forum summary report" in current page administration
|
||||
And I navigate to "Reports" in current page administration
|
||||
Then "Groups" "button" should not exist
|
||||
And the following should exist in the "forumreport_summary_table" table:
|
||||
# | | Discussions |
|
||||
|
||||
@@ -39,20 +39,20 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
|
||||
Scenario: Perform an advanced search using any term
|
||||
Given I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "words" to "subject"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should see "My subject"
|
||||
And I should see "Your subjective"
|
||||
|
||||
Scenario: Perform an advanced search avoiding words
|
||||
Given I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "words" to "My"
|
||||
And I set the field "notwords" to "subjective"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should see "My subject"
|
||||
And I should not see "Your subjective"
|
||||
|
||||
@@ -61,19 +61,19 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
| mysql |
|
||||
| postgres |
|
||||
And I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "fullwords" to "subject"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should see "My subject"
|
||||
And I should not see "Your subjective"
|
||||
|
||||
Scenario: Perform an advanced search matching the subject
|
||||
Given I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "subject" to "subjective"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should not see "My message"
|
||||
And I should see "Your subjective"
|
||||
|
||||
@@ -85,19 +85,19 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
| Message | My message |
|
||||
And I log out
|
||||
When I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "user" to "TWO"
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
Then I should see "Teacher TWO"
|
||||
And I should not see "Teacher ONE"
|
||||
|
||||
Scenario: Perform an advanced search with multiple words
|
||||
Given I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "subject" to "your subjective"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should not see "My message"
|
||||
And I should see "Your subjective"
|
||||
|
||||
@@ -111,10 +111,10 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
And I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "Is tagged with" to "SearchedTag"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should see "My subject"
|
||||
And I should not see "Your subjective"
|
||||
|
||||
@@ -123,10 +123,10 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
Given I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I click on "Your subjective" action menu
|
||||
And I follow "Star this discussion"
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "starredonly" to "1"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should not see "My message"
|
||||
And I should see "Your subjective"
|
||||
|
||||
@@ -135,10 +135,10 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
Given I am on the "Announcements" "forum activity" page logged in as student1
|
||||
And I click on "Your subjective" action menu
|
||||
And I follow "Star this discussion"
|
||||
And I press "Search forums"
|
||||
And I press "Search"
|
||||
And I should see "Advanced search"
|
||||
And I set the field "words" to "message"
|
||||
And I set the field "starredonly" to "1"
|
||||
When I press "Search forums"
|
||||
When I press "Search"
|
||||
Then I should not see "My message"
|
||||
And I should see "Your subjective"
|
||||
|
||||
@@ -46,7 +46,7 @@ class behat_mod_forum extends behat_base {
|
||||
* @param TableNode $table
|
||||
*/
|
||||
public function i_add_a_new_topic_to_forum_with($forumname, TableNode $table) {
|
||||
$this->add_new_discussion($forumname, $table, get_string('addanewtopic', 'forum'));
|
||||
$this->add_new_discussion($forumname, $table, get_string('addanewdiscussion', 'forum'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,7 +57,7 @@ class behat_mod_forum extends behat_base {
|
||||
* @param TableNode $table
|
||||
*/
|
||||
public function i_add_a_new_question_to_forum_with($forumname, TableNode $table) {
|
||||
$this->add_new_discussion($forumname, $table, get_string('addanewquestion', 'forum'));
|
||||
$this->add_new_discussion($forumname, $table, get_string('addanewdiscussion', 'forum'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -273,15 +273,7 @@ class behat_mod_forum extends behat_base {
|
||||
* @Given /^I can subscribe to this forum$/
|
||||
*/
|
||||
public function i_can_subscribe_to_this_forum() {
|
||||
if ($this->running_javascript()) {
|
||||
$this->execute('behat_general::i_click_on', [get_string('actionsmenu'), 'link']);
|
||||
}
|
||||
|
||||
$this->execute('behat_general::assert_page_contains_text', [get_string('subscribe', 'mod_forum')]);
|
||||
|
||||
if ($this->running_javascript()) {
|
||||
$this->execute('behat_general::i_click_on', [get_string('actionsmenu'), 'link']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -290,15 +282,7 @@ class behat_mod_forum extends behat_base {
|
||||
* @Given /^I can unsubscribe from this forum$/
|
||||
*/
|
||||
public function i_can_unsubscribe_from_this_forum() {
|
||||
if ($this->running_javascript()) {
|
||||
$this->execute('behat_general::i_click_on', [get_string('actionsmenu'), 'link']);
|
||||
}
|
||||
|
||||
$this->execute('behat_general::assert_page_contains_text', [get_string('unsubscribe', 'mod_forum')]);
|
||||
|
||||
if ($this->running_javascript()) {
|
||||
$this->execute('behat_general::i_click_on', [get_string('actionsmenu'), 'link']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -307,10 +291,6 @@ class behat_mod_forum extends behat_base {
|
||||
* @Given /^I subscribe to this forum$/
|
||||
*/
|
||||
public function i_subscribe_to_this_forum() {
|
||||
if ($this->running_javascript()) {
|
||||
$this->execute('behat_general::i_click_on', [get_string('actionsmenu'), 'link']);
|
||||
}
|
||||
|
||||
$this->execute('behat_general::click_link', [get_string('subscribe', 'mod_forum')]);
|
||||
}
|
||||
|
||||
@@ -320,10 +300,6 @@ class behat_mod_forum extends behat_base {
|
||||
* @Given /^I unsubscribe from this forum$/
|
||||
*/
|
||||
public function i_unsubscribe_from_this_forum() {
|
||||
if ($this->running_javascript()) {
|
||||
$this->execute('behat_general::i_click_on', [get_string('actionsmenu'), 'link']);
|
||||
}
|
||||
|
||||
$this->execute('behat_general::click_link', [get_string('unsubscribe', 'mod_forum')]);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I can subscribe to this forum
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
And I subscribe to this forum
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And I can unsubscribe from this forum
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
@@ -149,50 +149,6 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
|
||||
@javascript
|
||||
Scenario: A user does not lose their preferences when a forum is switch from optional to automatic
|
||||
Given the following "activity" exists:
|
||||
| activity | forum |
|
||||
| course | C1 |
|
||||
| idnumber | forum1 |
|
||||
| name | Test forum name |
|
||||
| intro | Test forum description |
|
||||
| type | general |
|
||||
| forcesubscribe | 0 |
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Test post subject one |
|
||||
| Message | Test post message one |
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Test post subject two |
|
||||
| Message | Test post message two |
|
||||
And I log out
|
||||
And I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
And I can subscribe to this forum
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row"
|
||||
And I can subscribe to this forum
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
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 "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"
|
||||
And I log out
|
||||
And I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
And I can unsubscribe from this forum
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
When I unsubscribe from this forum
|
||||
And I should see "Student One will NOT be notified of new posts in 'Test forum name'"
|
||||
And I can subscribe to this forum
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
|
||||
Scenario: An optional forum prompts a user to subscribe to a discussion when posting unless they have already chosen not to subscribe
|
||||
Given the following "activity" exists:
|
||||
| activity | forum |
|
||||
@@ -211,7 +167,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
| Message | Test post message two |
|
||||
And I log out
|
||||
When I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
And I should see "Subscribe to this forum"
|
||||
And I should see "Subscribe to forum"
|
||||
And I reply "Test post subject one" post from "Test forum name" forum with:
|
||||
| Subject | Reply 1 to discussion 1 |
|
||||
| Message | Discussion contents 1, second message |
|
||||
@@ -247,17 +203,24 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Test post subject two |
|
||||
| Message | Test post message two |
|
||||
# added for this scenario
|
||||
And the following "users" exist:
|
||||
| username | firstname | lastname | email |
|
||||
| student2 | Student | Two | student.two@example.com |
|
||||
And the following "course enrolments" exist:
|
||||
| user | course | role |
|
||||
| student2 | C1 | student |
|
||||
And I log out
|
||||
When I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
And I should see "Unsubscribe from this forum"
|
||||
When I am on the "Test forum name" "forum activity" page logged in as student2
|
||||
And I should see "Unsubscribe from forum"
|
||||
And I reply "Test post subject one" post from "Test forum name" forum with:
|
||||
| Subject | Reply 1 to discussion 1 |
|
||||
| Message | Discussion contents 1, second message |
|
||||
| Discussion subscription | 1 |
|
||||
| Subject | Reply 1 to discussion 1 |
|
||||
| Message | Discussion contents 1, second message |
|
||||
| Discussion subscription | 1 |
|
||||
And I reply "Test post subject two" post from "Test forum name" forum with:
|
||||
| Subject | Reply 1 to discussion 1 |
|
||||
| Message | Discussion contents 1, second message |
|
||||
| Discussion subscription | 0 |
|
||||
| Subject | Reply 1 to discussion 1 |
|
||||
| Message | Discussion contents 1, second message |
|
||||
| Discussion subscription | 0 |
|
||||
And I am on the "Test forum name" "forum activity" page
|
||||
Then "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row"
|
||||
@@ -276,8 +239,8 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I am on site homepage
|
||||
And I turn editing mode on
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Test post subject one |
|
||||
| Message | Test post message one |
|
||||
| Subject | Test post subject one |
|
||||
| Message | Test post message one |
|
||||
And I log out
|
||||
When I log in as "guest"
|
||||
And I follow "Test forum name"
|
||||
@@ -294,8 +257,8 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I am on site homepage
|
||||
And I turn editing mode on
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Test post subject one |
|
||||
| Message | Test post message one |
|
||||
| Subject | Test post subject one |
|
||||
| Message | Test post message one |
|
||||
And I log out
|
||||
When I follow "Test forum name"
|
||||
Then "Subscribe to this discussion" "checkbox" should not exist in the "Test post subject one" "table_row"
|
||||
@@ -319,13 +282,13 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
| Message | Test post message one |
|
||||
And I log out
|
||||
When I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
Then "Subscribe to this forum" "link" should exist in current page administration
|
||||
Then "Subscribe to forum" "link" should exist
|
||||
And I follow "Test post subject one"
|
||||
And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
|
||||
And I follow "Test forum name"
|
||||
And I navigate to "Subscribe to this forum" in current page administration
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And "Unsubscribe from this forum" "link" should exist in current page administration
|
||||
And "Unsubscribe from forum" "link" should exist
|
||||
And I follow "Test post subject one"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist
|
||||
And I follow "You are subscribed to this discussion. Click to unsubscribe"
|
||||
@@ -333,22 +296,22 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I follow "Test post subject one"
|
||||
And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
|
||||
And I follow "Test forum name"
|
||||
And I navigate to "Unsubscribe from this forum" in current page administration
|
||||
And I follow "Unsubscribe from forum"
|
||||
And I should see "Student One will NOT be notified of new posts in 'Test forum name'"
|
||||
And "Subscribe to this forum" "link" should exist in current page administration
|
||||
And "Subscribe to forum" "link" should exist
|
||||
And I follow "Test post subject one"
|
||||
And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
|
||||
And I follow "You are not subscribed to this discussion. Click to subscribe"
|
||||
And I should see "Student One will be notified of new posts in 'Test post subject one' of 'Test forum name'"
|
||||
And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row"
|
||||
And I navigate to "Subscribe to this forum" in current page administration
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And "Unsubscribe from this forum" "link" should exist in current page administration
|
||||
And "Unsubscribe from forum" "link" should exist
|
||||
And I follow "Test post subject one"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist
|
||||
And I follow "Test forum name"
|
||||
And I navigate to "Unsubscribe from this forum" in current page administration
|
||||
And I follow "Unsubscribe from forum"
|
||||
And I should see "Student One will NOT be notified of new posts in 'Test forum name'"
|
||||
And "Subscribe to this forum" "link" should exist in current page administration
|
||||
And "Subscribe to forum" "link" should exist
|
||||
And I follow "Test post subject one"
|
||||
And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
|
||||
|
||||
@@ -48,7 +48,7 @@ Feature: Edited forum posts handle tags correctly
|
||||
And I press "Continue"
|
||||
And I log out
|
||||
And I am on the "Test forum name" "forum activity" page logged in as teacher1
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And I expand all fieldsets
|
||||
And I open the autocomplete suggestions list
|
||||
|
||||
@@ -92,12 +92,12 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Subscribe to this forum"
|
||||
And I should not see "Unsubscribe from this forum"
|
||||
And I follow "Subscribe to this forum"
|
||||
Then I should see "Subscribe to forum"
|
||||
And I should not see "Unsubscribe from forum"
|
||||
And I follow "Subscribe to forum"
|
||||
And I should see "Student One will be notified of new posts in 'Test forum name'"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
And I should not see "Subscribe to this forum"
|
||||
And I should see "Unsubscribe from forum"
|
||||
And I should not see "Subscribe to forum"
|
||||
|
||||
Scenario: An Automatic forum can be unsubscribed from
|
||||
Given the following "activity" exists:
|
||||
@@ -121,9 +121,9 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
When I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Unsubscribe from this forum"
|
||||
And I should not see "Subscribe to this forum"
|
||||
And I follow "Unsubscribe from this forum"
|
||||
Then I should see "Unsubscribe from forum"
|
||||
And I should not see "Subscribe to forum"
|
||||
And I follow "Unsubscribe from forum"
|
||||
And I should see "Student One will NOT be notified of new posts in 'Test forum name'"
|
||||
And I should see "Subscribe to this forum"
|
||||
And I should not see "Unsubscribe from this forum"
|
||||
And I should see "Subscribe to forum"
|
||||
And I should not see "Unsubscribe from forum"
|
||||
|
||||
@@ -45,7 +45,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
| Description | Test forum description |
|
||||
| Subscription mode | Forced subscription |
|
||||
And I am on the "Forced Forum 1" "forum activity" page
|
||||
And I navigate to "Show/edit current subscribers" in current page administration
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
Then I should see "Student 1"
|
||||
And I should see "Teacher Teacher"
|
||||
And I should see "Student 2"
|
||||
@@ -56,7 +56,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
And I click on "Grouping" "button" in the "Add restriction..." "dialogue"
|
||||
And I set the field with xpath "//select[@name='id']" to "Grouping 1"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Show/edit current subscribers" in current page administration
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
And I should see "Student 1"
|
||||
And I should see "Teacher Teacher"
|
||||
And I should not see "Student 2"
|
||||
@@ -78,12 +78,12 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
| Availability | Show on course page |
|
||||
And I press "Save and return to course"
|
||||
And I am on the "Forced Forum 2" "forum activity" page
|
||||
And I navigate to "Show/edit current subscribers" in current page administration
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
Then I should see "Teacher Teacher"
|
||||
And I should see "Student 1"
|
||||
And I should see "Student 2"
|
||||
And I should see "Student 3"
|
||||
And I should not see "Manage subscribers"
|
||||
And the "Subscribers" select box should contain "View subscribers"
|
||||
|
||||
Scenario: A forced and hidden forum lists only teachers
|
||||
Given the following "activity" exists:
|
||||
@@ -101,7 +101,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
| Availability | Hide from students |
|
||||
And I press "Save and return to course"
|
||||
And I am on the "Forced Forum 2" "forum activity" page
|
||||
And I navigate to "Show/edit current subscribers" in current page administration
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
Then I should see "Teacher Teacher"
|
||||
And I should not see "Student 1"
|
||||
And I should not see "Student 2"
|
||||
@@ -115,7 +115,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
| Description | Test forum description |
|
||||
| Subscription mode | Auto subscription |
|
||||
And I am on the "Forced Forum 1" "forum activity" page
|
||||
And I navigate to "Show/edit current subscribers" in current page administration
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
Then I should see "Student 1"
|
||||
And I should see "Teacher Teacher"
|
||||
And I should see "Student 2"
|
||||
@@ -127,7 +127,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
||||
And I click on "Grouping" "button" in the "Add restriction..." "dialogue"
|
||||
And I set the field with xpath "//select[@name='id']" to "Grouping 1"
|
||||
And I press "Save and display"
|
||||
And I navigate to "Show/edit current subscribers" in current page administration
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
And I should see "Student 1"
|
||||
And I should see "Teacher Teacher"
|
||||
And I should not see "Student 2"
|
||||
|
||||
@@ -27,12 +27,12 @@ Feature: A user can control their default discussion subscription settings
|
||||
|
||||
Scenario: Creating a new discussion in an optional forum follows user preferences
|
||||
Given I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
And I log out
|
||||
And I am on the "Test forum name" "forum activity" page logged in as student2
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And "input[name=discussionsubscribe]:not([checked=checked])" "css_element" should exist
|
||||
|
||||
@@ -59,12 +59,12 @@ Feature: A user can control their default discussion subscription settings
|
||||
And I press "Save and return to course"
|
||||
And I log out
|
||||
And I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
And I log out
|
||||
And I am on the "Test forum name" "forum activity" page logged in as student2
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
|
||||
|
||||
@@ -29,26 +29,12 @@ 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 "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"
|
||||
And I follow "Test forum name"
|
||||
And I follow "Show/edit current subscribers"
|
||||
Then ".userselector" "css_element" should not exist
|
||||
And "Manage subscribers" "button" should exist
|
||||
And I press "Manage subscribers"
|
||||
And ".userselector" "css_element" should exist
|
||||
And "Finish managing subscriptions" "button" should exist
|
||||
And I press "Finish managing subscriptions"
|
||||
And ".userselector" "css_element" should not exist
|
||||
And "Manage subscribers" "button" should exist
|
||||
And I press "Manage subscribers"
|
||||
And ".userselector" "css_element" should exist
|
||||
And "Finish managing subscriptions" "button" should exist
|
||||
And I press "Finish managing subscriptions"
|
||||
And ".userselector" "css_element" should not exist
|
||||
And "Manage subscribers" "button" should exist
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
Then I select "Manage subscribers" from the "Subscribers" singleselect
|
||||
And "Add" "button" should exist
|
||||
And "Remove" "button" should exist
|
||||
And I select "View subscribers" from the "Subscribers" singleselect
|
||||
And the "Subscribers" select box should contain "View subscribers"
|
||||
|
||||
@javascript
|
||||
Scenario Outline: Toggle forum subscription mode via settings navigation
|
||||
|
||||
@@ -28,9 +28,10 @@ Feature: Changes to the subscription mode of a forum can change subcribers of a
|
||||
|
||||
Scenario: A change from Forced subscription to Auto subcription causes all participants to be subscribed
|
||||
Given I follow "Test forum name"
|
||||
And I navigate to "Subscription mode > Auto subscription" in current page administration
|
||||
When I navigate to "Show/edit current subscribers" in current page administration
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
When I select "Auto subscription" from the "Subscriptions" singleselect
|
||||
Then I should not see "There are no subscribers yet for this forum"
|
||||
And I navigate to "Subscriptions" in current page administration
|
||||
And I should see "Student 1"
|
||||
And I should see "student.1@example.com"
|
||||
And I should see "Student 2"
|
||||
|
||||
@@ -35,7 +35,7 @@ Feature: Forums in 'No groups' mode allow posting to All participants for all us
|
||||
And I follow "Standard forum name"
|
||||
And I should not see "Group A"
|
||||
And I should not see "Group B"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
And I should not see "Group" in the "form" "css_element"
|
||||
And I set the following fields to these values:
|
||||
@@ -51,7 +51,7 @@ Feature: Forums in 'No groups' mode allow posting to All participants for all us
|
||||
And I follow "Standard forum name"
|
||||
And I should not see "Group A"
|
||||
And I should not see "Group B"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
And I should not see "Group" in the "form" "css_element"
|
||||
And I set the following fields to these values:
|
||||
|
||||
@@ -80,7 +80,7 @@ Feature: Inline editing H5P content in mod_forum
|
||||
Given I am on the "C1" "Course" page logged in as "admin"
|
||||
# Add H5P content to a forum post as admin.
|
||||
And I am on the "ForumName1" "forum activity" page
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Forum post by admin |
|
||||
And I click on "Insert H5P" "button" in the "#fitem_id_message" "css_element"
|
||||
|
||||
@@ -23,7 +23,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Teacher -> All participants |
|
||||
@@ -36,7 +36,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Separate forum"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Teacher -> All participants |
|
||||
@@ -49,7 +49,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Visible forum"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Teacher -> All participants |
|
||||
@@ -62,7 +62,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
||||
Given I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Student -> All participants |
|
||||
@@ -76,11 +76,11 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Separate forum"
|
||||
Then I should see "You are not able to create a discussion because you are not a member of any group."
|
||||
And I should not see "Add a new discussion topic"
|
||||
And I should not see "Add discussion topic"
|
||||
|
||||
Scenario: Students cannot post in forum with visible groups
|
||||
Given I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Visible forum"
|
||||
Then I should see "You are not able to create a discussion because you are not a member of any group."
|
||||
And I should not see "Add a new discussion topic"
|
||||
And I should not see "Add discussion topic"
|
||||
|
||||
@@ -112,7 +112,7 @@ Feature: A user with access to multiple groups should be able to post a copy of
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "No group forum"
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
|
||||
Scenario: Posts to all groups that have groupings should only display within the grouping and not to other groups
|
||||
|
||||
@@ -56,7 +56,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then the "Group" select box should contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
@@ -69,7 +69,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
And I select "Group A" from the "Separate groups" singleselect
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then I should see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
@@ -100,7 +100,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
And I select "Group A" from the "Separate groups" singleselect
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then I should see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
@@ -130,7 +130,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Teacher 1 -> Post to all |
|
||||
@@ -159,7 +159,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Standard forum name"
|
||||
Then I should see "Group A"
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I should see "Group A"
|
||||
And I should not see "Group B"
|
||||
And I should not see "Group C"
|
||||
@@ -177,7 +177,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Standard forum name"
|
||||
And I select "Group A" from the "Separate groups" singleselect
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And the "Group" select box should not contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
@@ -198,7 +198,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
And I should not see "Student -> B"
|
||||
# Now try posting in Group A (starting at Group B)
|
||||
And I select "Group B" from the "Separate groups" singleselect
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And the "Group" select box should not contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
@@ -226,7 +226,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
Given I log in as "noneditor1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then the "Group" select box should not contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
@@ -241,7 +241,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
||||
Given I log in as "noneditor1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then the "Group" select box should not contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
|
||||
@@ -88,13 +88,13 @@ Feature: I can grade a students by group with separate groups
|
||||
And I log out
|
||||
When I am on the "Test Forum 1" "forum activity" page logged in as student1
|
||||
And I select "Group A" from the "Separate groups" singleselect
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Discussion subject A |
|
||||
| Message | Discussion message A |
|
||||
And I press "Post to forum"
|
||||
And I select "Group C" from the "Separate groups" singleselect
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Discussion subject C |
|
||||
| Message | Discussion message C |
|
||||
|
||||
@@ -47,14 +47,14 @@ Feature: Posting to groups in a separate group discussion when restricted to gro
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Multiple groups forum"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then the "Group" select box should contain "All participants"
|
||||
And the "Group" select box should contain "G1G1"
|
||||
And the "Group" select box should contain "G1G2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Single groups forum"
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And the "Group" select box should contain "All participants"
|
||||
And the "Group" select box should contain "G2G1"
|
||||
@@ -64,14 +64,14 @@ Feature: Posting to groups in a separate group discussion when restricted to gro
|
||||
Given I log in as "teacher2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Multiple groups forum"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then the "Group" select box should not contain "All participants"
|
||||
And the "Group" select box should contain "G1G1"
|
||||
And the "Group" select box should contain "G1G2"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Single groups forum"
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And I should see "G2G1"
|
||||
And "Group" "select" should not exist
|
||||
|
||||
@@ -47,7 +47,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then the "Group" select box should contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
@@ -60,7 +60,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
And I select "Group A" from the "Visible groups" singleselect
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then I should see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
@@ -91,7 +91,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
And I select "Group A" from the "Visible groups" singleselect
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
Then I should see "Post a copy to all groups"
|
||||
And I set the following fields to these values:
|
||||
@@ -121,7 +121,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
||||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "link"
|
||||
When I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And I set the following fields to these values:
|
||||
| Subject | Teacher 1 -> Post to all |
|
||||
@@ -159,7 +159,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Standard forum name"
|
||||
Then I should see "Group A"
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And I should see "Group A"
|
||||
And I should not see "Group B"
|
||||
@@ -178,7 +178,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Standard forum name"
|
||||
And I select "Group A" from the "Visible groups" singleselect
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And the "Group" select box should not contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
@@ -199,7 +199,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
||||
And I should not see "Student -> B"
|
||||
# Now try posting in Group A (starting at Group B)
|
||||
And I select "Group B" from the "Visible groups" singleselect
|
||||
And I click on "Add a new discussion topic" "link"
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
And the "Group" select box should not contain "All participants"
|
||||
And the "Group" select box should contain "Group A"
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Step definitions related to mod_forum overrides for the Classic theme.
|
||||
*
|
||||
* @package theme_classic
|
||||
* @category test
|
||||
* @copyright 2019 Ryan Wyllie <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
|
||||
|
||||
require_once(__DIR__ . '/../../../../mod/forum/tests/behat/behat_mod_forum.php');
|
||||
|
||||
/**
|
||||
* Step definitions related to mod_forum overrides for the Classic theme.
|
||||
*
|
||||
* @package theme_classic
|
||||
* @category test
|
||||
* @copyright 2019 Ryan Wyllie <[email protected]>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class behat_theme_classic_behat_mod_forum extends behat_mod_forum {
|
||||
|
||||
/**
|
||||
* Checks if the user can subscribe to the forum.
|
||||
*/
|
||||
public function i_can_subscribe_to_this_forum() {
|
||||
$this->execute('behat_general::assert_page_contains_text', [get_string('subscribe', 'mod_forum')]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the user can unsubscribe from the forum.
|
||||
*/
|
||||
public function i_can_unsubscribe_from_this_forum() {
|
||||
$this->execute('behat_general::assert_page_contains_text', [get_string('unsubscribe', 'mod_forum')]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Subscribes to the forum.
|
||||
*/
|
||||
public function i_subscribe_to_this_forum() {
|
||||
$this->execute('behat_general::click_link', [get_string('subscribe', 'mod_forum')]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsubscribes from the forum.
|
||||
*/
|
||||
public function i_unsubscribe_from_this_forum() {
|
||||
$this->execute('behat_general::click_link', [get_string('unsubscribe', 'mod_forum')]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user