mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -18,8 +18,7 @@ Feature: Add forum activities and discussions
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
@ -29,7 +28,7 @@ Feature: Add forum activities and discussions
|
|||
| Message | This is the body |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Post with attachment |
|
||||
| Message | This is the body |
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
| teacher2 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Latest announcements" block
|
||||
And I navigate to "Edit settings" node in "Course administration"
|
||||
And I set the field "id_newsitems" to "1"
|
||||
|
@ -28,7 +27,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
And I add a new topic to "Announcements" forum with:
|
||||
| Subject | My subject |
|
||||
| Message | My message |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new topic to "Announcements" forum with:
|
||||
| Subject | My subjective|
|
||||
| Message | My long message |
|
||||
|
@ -36,7 +35,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
|
||||
Scenario: Perform an advanced search using any term
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Announcements"
|
||||
And I press "Search forums"
|
||||
And I should see "Advanced search"
|
||||
|
@ -47,7 +46,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
|
||||
Scenario: Perform an advanced search avoiding words
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Announcements"
|
||||
And I press "Search forums"
|
||||
And I should see "Advanced search"
|
||||
|
@ -62,7 +61,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
| mysql |
|
||||
| postgres |
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Announcements"
|
||||
And I press "Search forums"
|
||||
And I should see "Advanced search"
|
||||
|
@ -73,7 +72,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
|
||||
Scenario: Perform an advanced search matching the subject
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Announcements"
|
||||
And I press "Search forums"
|
||||
And I should see "Advanced search"
|
||||
|
@ -84,13 +83,13 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
|
||||
Scenario: Perform an advanced search matching the author
|
||||
Given I log in as "teacher2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new topic to "Announcements" forum with:
|
||||
| Subject | My Subjects |
|
||||
| Message | My message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Announcements"
|
||||
And I press "Search forums"
|
||||
And I should see "Advanced search"
|
||||
|
@ -101,7 +100,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
|||
|
||||
Scenario: Perform an advanced search with multiple words
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Announcements"
|
||||
And I press "Search forums"
|
||||
And I should see "Advanced search"
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Set a certain number of discussions as a completion condition for a for
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
|
@ -31,7 +30,7 @@ Feature: Set a certain number of discussions as a completion condition for a for
|
|||
| completiondiscussions | 2 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then the "Test forum name" "forum" activity with "auto" completion should be marked as not complete
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Post 1 subject |
|
||||
|
@ -39,9 +38,9 @@ Feature: Set a certain number of discussions as a completion condition for a for
|
|||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Post 2 subject |
|
||||
| Message | Body 2 content |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then the "Test forum name" "forum" activity with "auto" completion should be marked as complete
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Student 1" user has completed "Test forum name" activity
|
||||
|
|
|
@ -15,8 +15,7 @@ Feature: Students can choose from 4 discussion display options and their choice
|
|||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Description | Test forum description |
|
||||
|
@ -34,7 +33,7 @@ Feature: Students can choose from 4 discussion display options and their choice
|
|||
| Message | Discussion contents 2, second message |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: Display replies flat, with oldest first
|
||||
Given I reply "Discussion 1" post from "Test forum name" forum with:
|
||||
|
|
|
@ -34,7 +34,7 @@ Feature: A user can navigate to previous and next discussions
|
|||
| activity | name | intro | course | idnumber | groupmode |
|
||||
| forum | Test forum name | Test forum name | C1 | forum | 0 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Discussion 1 |
|
||||
|
@ -75,7 +75,7 @@ Feature: A user can navigate to previous and next discussions
|
|||
| activity | name | intro | course | idnumber | groupmode |
|
||||
| forum | Test forum name | Test forum name | C1 | forum | 2 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Discussion 1 Group 0 |
|
||||
|
@ -101,7 +101,7 @@ Feature: A user can navigate to previous and next discussions
|
|||
| Group | Group 2 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I select "All participants" from the "Visible groups" singleselect
|
||||
And I follow "Discussion 1 Group 0"
|
||||
|
@ -132,7 +132,7 @@ Feature: A user can navigate to previous and next discussions
|
|||
| activity | name | intro | course | idnumber | groupmode |
|
||||
| forum | Test forum name | Test forum name | C1 | forum | 1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Discussion 1 Group 0 |
|
||||
|
@ -158,7 +158,7 @@ Feature: A user can navigate to previous and next discussions
|
|||
| Group | Group 2 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I follow "Discussion 1 Group 1"
|
||||
Then I should see "Discussion 2 Group 0"
|
||||
|
|
|
@ -15,8 +15,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
Scenario: An optional forum can have discussions subscribed to
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
|
@ -32,7 +31,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| Message | Test post message two |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Subscribe to this forum"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
|
@ -77,7 +76,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| Message | Test post message two |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Unsubscribe from this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
|
@ -122,7 +121,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| Message | Test post message two |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
|
@ -134,7 +133,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
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 set the following fields to these values:
|
||||
|
@ -142,7 +141,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And I press "Save and return to course"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
|
@ -167,7 +166,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| Message | Test post message two |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
|
@ -179,7 +178,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
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 set the following fields to these values:
|
||||
|
@ -187,7 +186,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
And I press "Save and return to course"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
|
@ -212,7 +211,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| Message | Test post message two |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I should see "Subscribe to this forum"
|
||||
And I reply "Test post subject one" post from "Test forum name" forum with:
|
||||
|
@ -248,7 +247,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| Message | Test post message two |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
And I reply "Test post subject one" post from "Test forum name" forum with:
|
||||
|
@ -316,7 +315,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
|||
| Message | Test post message one |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Test forum name"
|
||||
Then "Subscribe to this forum" "link" should exist in current page administration
|
||||
And I follow "Test post subject one"
|
||||
|
|
|
@ -18,7 +18,7 @@ Feature: Students can edit or delete their forum posts within a set time limit
|
|||
| activity | name | intro | course | idnumber |
|
||||
| forum | Test forum name | Test forum description | C1 | forum |
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Forum post subject |
|
||||
| Message | This is the body |
|
||||
|
@ -47,8 +47,7 @@ Feature: Students can edit or delete their forum posts within a set time limit
|
|||
And I navigate to "Security > Site policies" in site administration
|
||||
And I set the field "Maximum time to edit posts" to "1 minutes"
|
||||
And I press "Save changes"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Recent activity" block
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
|
@ -56,7 +55,7 @@ Feature: Students can edit or delete their forum posts within a set time limit
|
|||
| Description | Test forum description |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I wait "61" seconds
|
||||
And I follow "Forum post subject"
|
||||
Then I should not see "Edit" in the "region-main" "region"
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Teachers can edit or delete any forum post
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Description | Test forum description |
|
||||
|
@ -27,7 +26,7 @@ Feature: Teachers can edit or delete any forum post
|
|||
| Message | Teacher post message |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I reply "Teacher post subject" post from "Test forum name" forum with:
|
||||
| Subject | Student post subject |
|
||||
| Message | Student post message |
|
||||
|
@ -35,7 +34,7 @@ Feature: Teachers can edit or delete any forum post
|
|||
Scenario: A teacher can delete another user's posts
|
||||
Given I log out
|
||||
And I log in as "teacher1"
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I follow "Teacher post subject"
|
||||
And I click on "Delete" "link" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' forumpost ')][contains(., 'Student post subject')]" "xpath_element"
|
||||
|
@ -46,7 +45,7 @@ Feature: Teachers can edit or delete any forum post
|
|||
Scenario: A teacher can edit another user's posts
|
||||
Given I log out
|
||||
And I log in as "teacher1"
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I follow "Teacher post subject"
|
||||
And I click on "Edit" "link" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' forumpost ')][contains(., 'Student post subject')]" "xpath_element"
|
||||
|
|
|
@ -15,8 +15,7 @@ Feature: A user can control their own subscription preferences for a forum
|
|||
| user | course | role |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
Scenario: A disallowed subscription forum cannot be subscribed to
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
|
@ -29,7 +28,7 @@ Feature: A user can control their own subscription preferences for a forum
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should not see "Subscribe to this forum"
|
||||
And I should not see "Unsubscribe from this forum"
|
||||
|
@ -47,7 +46,7 @@ Feature: A user can control their own subscription preferences for a forum
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should not see "Subscribe to this forum"
|
||||
And I should not see "Unsubscribe from this forum"
|
||||
|
@ -65,7 +64,7 @@ Feature: A user can control their own subscription preferences for a forum
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Subscribe to this forum"
|
||||
And I should not see "Unsubscribe from this forum"
|
||||
|
@ -85,7 +84,7 @@ Feature: A user can control their own subscription preferences for a forum
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Unsubscribe from this forum"
|
||||
And I should not see "Subscribe to this forum"
|
||||
|
|
|
@ -35,8 +35,7 @@ Feature: As a teacher I need to see an accurate list of subscribed users
|
|||
| grouping | group |
|
||||
| GG1 | G1 |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
@javascript
|
||||
Scenario: A forced forum lists all subscribers
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: A user can control their default discussion subscription settings
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
Scenario: Creating a new discussion in an optional forum follows user preferences
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
|
@ -28,13 +27,13 @@ Feature: A user can control their default discussion subscription settings
|
|||
| Subscription mode | Optional subscription |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
When I press "Add a new discussion topic"
|
||||
Then "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I press "Add a new discussion topic"
|
||||
And "input[name=discussionsubscribe]:not([checked=checked])" "css_element" should exist
|
||||
|
@ -50,14 +49,14 @@ Feature: A user can control their default discussion subscription settings
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I follow "Test post subject"
|
||||
When I follow "Reply"
|
||||
Then "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I follow "Test post subject"
|
||||
And I follow "Reply"
|
||||
|
@ -71,13 +70,13 @@ Feature: A user can control their default discussion subscription settings
|
|||
| Subscription mode | Auto subscription |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
When I press "Add a new discussion topic"
|
||||
Then "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I press "Add a new discussion topic"
|
||||
And "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
|
@ -93,14 +92,14 @@ Feature: A user can control their default discussion subscription settings
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I follow "Test post subject"
|
||||
When I follow "Reply"
|
||||
Then "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I follow "Test post subject"
|
||||
And I follow "Reply"
|
||||
|
@ -117,7 +116,7 @@ Feature: A user can control their default discussion subscription settings
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I click on "You are subscribed to this discussion. Click to unsubscribe." "link" in the "Test post subject" "table_row"
|
||||
And I should see "Student One will NOT be notified of new posts in 'Test post subject' of 'Test forum name'"
|
||||
|
@ -126,7 +125,7 @@ Feature: A user can control their default discussion subscription settings
|
|||
And "input[name=discussionsubscribe][checked=checked]" "css_element" should exist
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I click on "You are subscribed to this discussion. Click to unsubscribe." "link" in the "Test post subject" "table_row"
|
||||
And I should see "Student Two will NOT be notified of new posts in 'Test post subject' of 'Test forum name'"
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: A teacher can control the subscription to a forum
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
|
|
@ -31,7 +31,7 @@ Feature: Forums in 'No groups' mode allow posting to All participants for all us
|
|||
|
||||
Scenario: Teacher can post
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
And I should not see "Group A"
|
||||
And I should not see "Group B"
|
||||
|
@ -47,7 +47,7 @@ Feature: Forums in 'No groups' mode allow posting to All participants for all us
|
|||
|
||||
Scenario: Student can post
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
And I should not see "Group A"
|
||||
And I should not see "Group B"
|
||||
|
|
|
@ -23,14 +23,14 @@ Feature: A teacher can move discussions between forums
|
|||
| forum | Test forum 1 | Test forum 2 | C1 | forum | 0 |
|
||||
| forum | Test forum 2 | Test forum 1 | C1 | forum | 0 |
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum 1"
|
||||
And I add a new discussion to "Test forum 1" forum with:
|
||||
| Subject | Discussion 1 |
|
||||
| Message | Test post message |
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum 1"
|
||||
And I follow "Discussion 1"
|
||||
When I set the field "jump" to "Test forum 2"
|
||||
|
|
|
@ -18,7 +18,7 @@ Feature: A user can view their posts and discussions
|
|||
| activity | name | intro | course | idnumber | groupmode |
|
||||
| forum | Test forum name | Test forum | C1 | forum | 0 |
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new discussion to "Test forum name" forum with:
|
||||
| Subject | Forum discussion 1 |
|
||||
| Message | How awesome is this forum discussion? |
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
|||
|
||||
Scenario: Teachers can post in standard forum
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
|
@ -34,7 +34,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
|||
|
||||
Scenario: Teachers can post in forum with separate groups
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Separate forum"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
|
@ -47,7 +47,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
|||
|
||||
Scenario: Teachers can post in forum with visible groups
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Visible forum"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
|
@ -60,7 +60,7 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
|||
|
||||
Scenario: Students can post in standard forum
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then I should not see "Post a copy to all groups"
|
||||
|
@ -73,14 +73,14 @@ Feature: Posting to forums in a course with no groups behaves correctly
|
|||
|
||||
Scenario: Students cannot post in forum with separate groups
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Separate forum"
|
||||
Then I should see "You do not have permission to add a new discussion topic for all participants."
|
||||
And I should not see "Add a new discussion topic"
|
||||
|
||||
Scenario: Teachers can post in forum with visible groups
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Visible forum"
|
||||
Then I should see "You do not have permission to add a new discussion topic for all participants."
|
||||
And I should not see "Add a new discussion topic"
|
||||
|
|
|
@ -64,71 +64,71 @@ Feature: A user with access to multiple groups should be able to post a copy of
|
|||
|
||||
Scenario: Teacher is able to post a copy of a message to all groups in a separate group forum
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new discussion to "Separate group forum" forum with:
|
||||
| Subject | Discussion 1 |
|
||||
| Message | test |
|
||||
| Post a copy to all groups | 1 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Separate group forum"
|
||||
Then I should see "Discussion 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Separate group forum"
|
||||
And I should see "Discussion 1"
|
||||
And I log out
|
||||
And I log in as "student3"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Separate group forum"
|
||||
And I should see "Discussion 1"
|
||||
|
||||
Scenario: Teacher is able to post a copy of a message to all groups in a visible group forum
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a new discussion to "Visible group forum" forum with:
|
||||
| Subject | Discussion 1 |
|
||||
| Message | test |
|
||||
| Post a copy to all groups | 1 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Visible group forum"
|
||||
Then I should see "Discussion 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Visible group forum"
|
||||
And I should see "Discussion 1"
|
||||
And I log out
|
||||
And I log in as "student3"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Visible group forum"
|
||||
And I should see "Discussion 1"
|
||||
|
||||
Scenario: Teacher is unable to post a copy of a message to all groups in a no group forum
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "No group forum"
|
||||
And I press "Add a new discussion topic"
|
||||
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
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I add a new discussion to "Groupings forum" forum with:
|
||||
| Subject | Discussion 1 |
|
||||
| Message | test |
|
||||
| Post a copy to all groups | 1 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
When I follow "Groupings forum"
|
||||
Then I should see "Discussion 1"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 2"
|
||||
And I am on "Course 2" course homepage
|
||||
And I follow "Groupings forum"
|
||||
And I should not see "Discussion 1"
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Blog posts are always displayed in reverse chronological order
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Course blog forum |
|
||||
| Description | Single discussion forum description |
|
||||
|
@ -33,7 +32,7 @@ Feature: Blog posts are always displayed in reverse chronological order
|
|||
@javascript
|
||||
Scenario: Replying to a blog post or editing it does not affect its display order
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course blog forum"
|
||||
#
|
||||
# Add three posts into the blog.
|
||||
|
@ -60,7 +59,7 @@ Feature: Blog posts are always displayed in reverse chronological order
|
|||
# Reply to another blog post.
|
||||
#
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course blog forum"
|
||||
And I click on "Discuss this topic" "link" in the "//div[@aria-label='Blog post 1 by Student 1']" "xpath_element"
|
||||
And I click on "Reply" "link" in the "//div[@aria-label='Blog post 1 by Student 1']" "xpath_element"
|
||||
|
@ -69,7 +68,7 @@ Feature: Blog posts are always displayed in reverse chronological order
|
|||
And I press "Post to forum"
|
||||
And I wait to be redirected
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course blog forum"
|
||||
#
|
||||
# Make sure the order of the blog posts is still reverse chronological.
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: New discussions and discussions with recently added replies are display
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Course general forum |
|
||||
| Description | Single discussion forum description |
|
||||
|
@ -33,7 +32,7 @@ Feature: New discussions and discussions with recently added replies are display
|
|||
@javascript
|
||||
Scenario: Replying to a forum post or editing it puts the discussion to the front
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course general forum"
|
||||
#
|
||||
# Add three posts into the forum.
|
||||
|
@ -61,7 +60,7 @@ Feature: New discussions and discussions with recently added replies are display
|
|||
# Reply to another forum post.
|
||||
#
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course general forum"
|
||||
And I follow "Forum post 1"
|
||||
And I click on "Reply" "link" in the "//div[@aria-label='Forum post 1 by Student 1']" "xpath_element"
|
||||
|
@ -69,7 +68,7 @@ Feature: New discussions and discussions with recently added replies are display
|
|||
| Message | Reply to the first post |
|
||||
And I press "Post to forum"
|
||||
And I wait to be redirected
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course general forum"
|
||||
#
|
||||
# Make sure the order of the forum posts is as expected (most recently participated first).
|
||||
|
|
|
@ -45,7 +45,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Teacher with accessallgroups can view all groups
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Standard forum name"
|
||||
Then the "Separate groups" select box should contain "All participants"
|
||||
Then the "Separate groups" select box should contain "Group A"
|
||||
|
@ -54,7 +54,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Teacher with accessallgroups can select any group when posting
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then the "Group" select box should contain "All participants"
|
||||
|
@ -65,7 +65,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Teacher with accessallgroups can post in groups they are a member of
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
@ -95,7 +95,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Teacher with accessallgroups can post in groups they are not a member of
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
@ -125,7 +125,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Teacher with accessallgroups can post to all groups
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
And I set the following fields to these values:
|
||||
|
@ -152,7 +152,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Students in one group can only post in their group
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
@ -170,7 +170,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Students in multiple group can post in all of their group individually
|
||||
Given I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
@ -218,7 +218,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
| moodle/site:accessallgroups | Prohibit |
|
||||
And I log out
|
||||
Given I log in as "noneditor1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then the "Group" select box should not contain "All participants"
|
||||
|
@ -232,7 +232,7 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
| moodle/site:accessallgroups | Prohibit |
|
||||
And I log out
|
||||
Given I log in as "noneditor1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then the "Group" select box should not contain "All participants"
|
||||
|
@ -242,13 +242,13 @@ Feature: Posting to all groups in a separate group discussion is restricted to u
|
|||
|
||||
Scenario: Students can view all participants discussions in separate groups mode
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I add a new discussion to "Standard forum name" forum with:
|
||||
| Subject | Forum post to all participants |
|
||||
| Message | This is the body |
|
||||
| Group | All participants |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
Then I should see "Forum post to all participants"
|
||||
|
|
|
@ -39,8 +39,7 @@ Feature: Posting to groups in a separate group discussion when restricted to gro
|
|||
| G1 | G1G2 |
|
||||
| G2 | G2G1 |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Multiple groups forum |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
@ -57,13 +56,13 @@ Feature: Posting to groups in a separate group discussion when restricted to gro
|
|||
|
||||
Scenario: Teacher with accessallgroups can post in all groups
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Multiple groups forum"
|
||||
When I click on "Add a new discussion topic" "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 page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Single groups forum"
|
||||
And I click on "Add a new discussion topic" "button"
|
||||
And the "Group" select box should contain "All participants"
|
||||
|
@ -72,13 +71,13 @@ Feature: Posting to groups in a separate group discussion when restricted to gro
|
|||
|
||||
Scenario: Teacher in all groups but without accessallgroups can post in either group but not to All Participants
|
||||
Given I log in as "teacher2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Multiple groups forum"
|
||||
When I click on "Add a new discussion topic" "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 page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Single groups forum"
|
||||
And I click on "Add a new discussion topic" "button"
|
||||
And I should see "G2G1"
|
||||
|
|
|
@ -22,14 +22,14 @@ Feature: Single simple forum discussion type
|
|||
|
||||
Scenario: Teacher can start the single simple discussion
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Single discussion forum name"
|
||||
Then I should see "Single discussion forum description" in the "div.firstpost.starter" "css_element"
|
||||
And I should not see "Add a new discussion topic"
|
||||
|
||||
Scenario: Student can not add more discussions
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I reply "Single discussion forum name" post from "Single discussion forum name" forum with:
|
||||
| Subject | Reply to single discussion subject |
|
||||
| Message | Reply to single discussion message |
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Forum discussions can be split
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I follow "Science 101"
|
||||
And I turn editing mode on
|
||||
And I am on "Science 101" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Study discussions |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
@ -28,14 +27,14 @@ Feature: Forum discussions can be split
|
|||
| Message | Lets discuss our learning about Photosynethis this week in this thread. |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I follow "Science 101"
|
||||
And I am on "Science 101" course homepage
|
||||
And I reply "Photosynethis discussion" post from "Study discussions" forum with:
|
||||
| Message | Can anyone tell me which number is the mass number in the periodic table? |
|
||||
And I log out
|
||||
|
||||
Scenario: Split a forum discussion
|
||||
Given I log in as "teacher1"
|
||||
And I follow "Science 101"
|
||||
And I am on "Science 101" course homepage
|
||||
And I follow "Study discussions"
|
||||
And I follow "Photosynethis discussion"
|
||||
When I follow "Split"
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: Users can choose to set start and end time for display of their discuss
|
|||
And I log in as "admin"
|
||||
And the following config values are set as admin:
|
||||
| forum_enabletimedposts | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Description | Test forum description |
|
||||
|
@ -34,14 +33,14 @@ Feature: Users can choose to set start and end time for display of their discuss
|
|||
| Subject | Discussion 3 timed visible now |
|
||||
| Message | Discussion contents 3, first message |
|
||||
| timestart[enabled] | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
And I should see "Discussion 2 timed"
|
||||
And I should see "Discussion 3 timed"
|
||||
And ".timedpost" "css_element" should exist
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Discussion 1"
|
||||
And I should not see "Discussion 2 timed"
|
||||
|
|
|
@ -17,8 +17,7 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
Scenario: Tracking forum posts off
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
|
@ -31,7 +30,7 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should not see "1 unread post"
|
||||
And I follow "Test forum name"
|
||||
And I should not see "Track unread posts"
|
||||
|
@ -47,18 +46,18 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "1 unread post"
|
||||
And I follow "Test forum name"
|
||||
And I follow "Don't track unread posts"
|
||||
And I wait to be redirected
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "1 unread post"
|
||||
And I follow "Test forum name"
|
||||
And I follow "Track unread posts"
|
||||
And I wait to be redirected
|
||||
And I click on "1" "link" in the "Admin User" "table_row"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "1 unread post"
|
||||
|
||||
Scenario: Tracking forum posts optional with user tracking off
|
||||
|
@ -72,7 +71,7 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should not see "1 unread post"
|
||||
And I follow "Test forum name"
|
||||
And I should not see "Track unread posts"
|
||||
|
@ -80,7 +79,7 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
Scenario: Tracking forum posts forced with user tracking on
|
||||
Given the following config values are set as admin:
|
||||
| forum_allowforcedreadtracking | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
@ -91,18 +90,18 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "1 unread post"
|
||||
And I follow "1 unread post"
|
||||
And I should not see "Don't track unread posts"
|
||||
And I follow "Test post subject"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "1 unread post"
|
||||
|
||||
Scenario: Tracking forum posts forced with user tracking off
|
||||
Given the following config values are set as admin:
|
||||
| forum_allowforcedreadtracking | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
@ -113,18 +112,18 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| Message | Test post message |
|
||||
And I log out
|
||||
When I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "1 unread post"
|
||||
And I follow "1 unread post"
|
||||
And I should not see "Don't track unread posts"
|
||||
And I follow "Test post subject"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "1 unread post"
|
||||
|
||||
Scenario: Tracking forum posts forced (with force disabled) with user tracking on
|
||||
Given the following config values are set as admin:
|
||||
| forum_allowforcedreadtracking | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
@ -137,24 +136,24 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| forum_allowforcedreadtracking | 0 |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should see "1 unread post"
|
||||
And I follow "Test forum name"
|
||||
And I follow "Don't track unread posts"
|
||||
And I wait to be redirected
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "1 unread post"
|
||||
And I follow "Test forum name"
|
||||
And I follow "Track unread posts"
|
||||
And I wait to be redirected
|
||||
And I click on "1" "link" in the "Admin User" "table_row"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I should not see "1 unread post"
|
||||
|
||||
Scenario: Tracking forum posts forced (with force disabled) with user tracking off
|
||||
Given the following config values are set as admin:
|
||||
| forum_allowforcedreadtracking | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Forum type | Standard forum for general use |
|
||||
|
@ -167,7 +166,7 @@ Feature: A teacher can set one of 3 possible options for tracking read forum pos
|
|||
| forum_allowforcedreadtracking | 0 |
|
||||
And I log out
|
||||
When I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
Then I should not see "1 unread post"
|
||||
And I follow "Test forum name"
|
||||
And I should not see "Track unread posts"
|
||||
|
|
|
@ -36,7 +36,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Teacher with accessallgroups can view all groups
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Standard forum name"
|
||||
Then the "Visible groups" select box should contain "All participants"
|
||||
Then the "Visible groups" select box should contain "Group A"
|
||||
|
@ -45,7 +45,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Teacher with accessallgroups can select any group when posting
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
Then the "Group" select box should contain "All participants"
|
||||
|
@ -56,7 +56,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Teacher with accessallgroups can post in groups they are a member of
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
@ -86,7 +86,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Teacher with accessallgroups can post in groups they are not a member of
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
@ -116,7 +116,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Teacher with accessallgroups can post to all groups
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Standard forum name"
|
||||
When I click on "Add a new discussion topic" "button"
|
||||
And I set the following fields to these values:
|
||||
|
@ -143,7 +143,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Students can view all groups
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Standard forum name"
|
||||
Then the "Visible groups" select box should contain "All participants"
|
||||
Then the "Visible groups" select box should contain "Group A"
|
||||
|
@ -152,7 +152,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Students in one group can only post in their group
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
@ -170,7 +170,7 @@ Feature: Posting to all groups in a visible group discussion is restricted to us
|
|||
|
||||
Scenario: Students in multiple group can post in all of their group individually
|
||||
Given I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
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" "button"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue