[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_forum 2 Feature: Single simple forum discussion type 3 In order to restrict the discussion topic to one 4 As a teacher 5 I need to create a forum with a single simple discussion 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 | student1 | Student | 1 | student1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 And the following "activities" exist: 20 | activity | name | intro | type | course | idnumber | 21 | forum | Single discussion forum name | Single discussion forum description | single | C1 | forum | 22 23 Scenario: Teacher can start the single simple discussion 24 Given I log in as "teacher1" 25 And I follow "Course 1" 26 When I follow "Single discussion forum name" 27 Then I should see "Single discussion forum description" in the "div.firstpost.starter" "css_element" 28 And I should not see "Add a new discussion topic" 29 30 Scenario: Student can not add more discussions 31 And I log in as "student1" 32 And I follow "Course 1" 33 When I reply "Single discussion forum name" post from "Single discussion forum name" forum with: 34 | Subject | Reply to single discussion subject | 35 | Message | Reply to single discussion message | 36 Then I should not see "Add a new discussion topic" 37 And I should see "Reply" in the "div.firstpost.starter" "css_element" 38 And I should see "Reply to single discussion message"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |