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 the dashboard and view comments
3
  In order to enable the comments block on a the dashboard
4
  As a teacher
5
  I can add the comments block to my dashboard
6
 
7
  Background:
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
 
15
  Scenario: Add the comments block on the dashboard and add comments with Javascript disabled
16
    When I log in as "teacher1"
17
    And I turn editing mode on
18
    And I add the "Comments" block
19
    And I follow "Show comments"
20
    And I add "I'm a comment from the teacher" comment to comments block
21
    Then I should see "I'm a comment from the teacher"
22
 
23
  @javascript
24
  Scenario: Add the comments block on the dashboard and add comments with Javascript enabled
25
    When I log in as "teacher1"
26
    And I turn editing mode on
27
    And I add the "Comments" block
28
    And I add "I'm a comment from the teacher" comment to comments block
29
    Then I should see "I'm a comment from the teacher"