AutorÃa | Ultima modificación | Ver Log |
@mod @mod_forumFeature: Forums in 'No groups' mode allow posting to All participants for all usersIn order to post to a forum in 'No groups' mode, which is in course which has groupsAs any userI need to postBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com || student1 | Student | 1 | student1@example.com |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |And the following "groups" exist:| name | course | idnumber || Group A | C1 | G1 || Group B | C1 | G2 |And the following "group members" exist:| user | group || teacher1 | G1 || teacher1 | G2 || student1 | G1 |And the following "activities" exist:| activity | name | course | idnumber | groupmode || forum | Standard forum name | C1 | nogroups | 0 |Scenario: Teacher can postGiven I am on the "Standard forum name" "forum activity" page logged in as teacher1And I should not see "Group A"And I should not see "Group B"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:| Subject | Teacher 1 -> Forum || Message | Teacher 1 -> Forum |And I press "Post to forum"And I wait to be redirectedAnd I should see "Teacher 1 -> Forum"Scenario: Student can postGiven I am on the "Standard forum name" "forum activity" page logged in as student1And I should not see "Group A"And I should not see "Group B"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:| Subject | Student 1 -> Forum || Message | Student 1 -> Forum |And I press "Post to forum"And I wait to be redirectedAnd I should see "Student 1 -> Forum"