AutorÃa | Ultima modificación | Ver Log |
@mod @mod_forumFeature: Single simple forum discussion typeIn order to restrict the discussion topic to oneAs a teacherI need to create a forum with a single simple discussionBackground: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 "activities" exist:| activity | name | intro | type | course | idnumber || forum | Single discussion forum name | Single discussion forum description | single | C1 | forum |Scenario: Teacher can start the single simple discussionWhen I am on the "Single discussion forum name" "forum activity" page logged in as teacher1Then 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 discussionsGiven I am on the "Course 1" course page logged in as student1When 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 |Then I should not see "Add a new discussion topic"And I should see "Reply" in the "div.firstpost.starter" "css_element"And I should see "Reply to single discussion message"