Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_comments
2
Feature: Enable Block comments on an activity page and view comments
3
  In order to enable the comments block on an activity page
4
  As a teacher
5
  I can add the comments block to an activity page
6
 
7
  Scenario: Add the comments block on an activity page and add comments
8
    Given the following "courses" exist:
9
      | fullname | shortname | category |
10
      | Course 1 | C1 | 0 |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email |
13
      | teacher1 | Teacher | First | teacher1@example.com |
14
      | student1 | Student | First | student1@example.com |
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 | course | idnumber | name           | intro                 |
21
      | page    | C1      | page1    | Test page name | Test page description |
22
    And the following "blocks" exist:
23
      | blockname | contextlevel    | reference | pagetypepattern | defaultregion |
24
      | comments  | Activity module | page1     | mod-page-*      | side-pre      |
25
    And I am on the "Test page name" "page activity" page logged in as teacher1
26
    And I follow "Show comments"
27
    And I add "I'm a comment from the teacher" comment to comments block
28
    When I am on the "Test page name" "page activity" page logged in as student1
29
    And I follow "Show comments"
30
    Then I should see "I'm a comment from the teacher"