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: A user can view their posts and discussions
3
  In order to ensure a user can view their posts and discussions
4
  As a student
5
  I need to view my post and discussions
6
 
7
  Scenario: View the student's posts and discussions
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | student1 | Student | 1 | student1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | category |
13
      | Course 1 | C1 | 0 |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | student1 | C1 | student |
17
    And the following "activities" exist:
18
      | activity   | name                   | course | idnumber     | groupmode |
19
      | forum      | Test forum name        | C1     | forum        | 0         |
20
    And the following "mod_forum > discussions" exist:
21
      | user     | forum | name               | message                               |
22
      | student1 | forum | Forum discussion 1 | How awesome is this forum discussion? |
23
    And the following "mod_forum > posts" exist:
24
      | user     | parentsubject             | subject                     | message                     |
25
      | student1 | Forum discussion 1        | Actually, I've seen better. | Actually, I've seen better. |
26
    And I log in as "student1"
27
    When I follow "Profile" in the user menu
28
    And I follow "Forum posts"
29
    Then I should see "How awesome is this forum discussion?"
30
    And I should see "Actually, I've seen better."
31
    And I follow "Profile" in the user menu
32
    And I follow "Forum discussions"
33
    And I should see "How awesome is this forum discussion?"
34
    And I should not see "Actually, I've seen better."