Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
    When I am on the "Single discussion forum name" "forum activity" page logged in as teacher1
25
    Then I should see "Single discussion forum description" in the "div.firstpost.starter" "css_element"
26
    And I should not see "Add a new discussion topic"
27
 
28
  Scenario: Student can not add more discussions
29
    Given I am on the "Course 1" course page logged in as student1
30
    When I reply "Single discussion forum name" post from "Single discussion forum name" forum with:
31
      | Subject | Reply to single discussion subject |
32
      | Message | Reply to single discussion message |
33
    Then I should not see "Add a new discussion topic"
34
    And I should see "Reply" in the "div.firstpost.starter" "css_element"
35
    And I should see "Reply to single discussion message"