Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_forum @javascript
2
Feature: Add forum activities and discussions utilizing the inline add discussion form
3
 
4
  Background: Add a forum and a discussion attaching files
5
    Given the following "users" exist:
6
      | username | firstname | lastname | email                |
7
      | teacher1 | Teacher   | 1        | teacher1@example.com |
8
      | student1 | Student   | 1        | student1@example.com |
9
    And the following "courses" exist:
10
      | fullname | shortname | category |
11
      | Course 1 | C1        | 0        |
12
    And the following "course enrolments" exist:
13
      | user     | course | role           |
14
      | teacher1 | C1     | editingteacher |
15
      | student1 | C1     | student        |
16
    And the following "activity" exists:
17
      | activity    | forum                  |
18
      | course      | C1                     |
19
      | idnumber    | 0001                   |
20
      | name        | Test forum name        |
21
      | type        | general                |
22
    And the following "mod_forum > discussion" exists:
23
      | forum   | 0001             |
24
      | course  | C1               |
25
      | user    | teacher1         |
26
      | name    | Forum post 1     |
27
      | message | This is the body |
28
 
29
  Scenario: Student can add a discussion via the inline form
30
    Given I am on the "Course 1" course page logged in as student1
31
    Then I add a new discussion to "Test forum name" forum inline with:
32
      | Subject | Post with attachment |
33
      | Message | This is the body     |