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: Delete comment block messages
3
  In order to refine comment block's contents
4
  As a teacher
5
  In need to delete comments from courses
6
 
7
  @javascript
8
  Scenario: Delete comments with Javascript enabled
9
    Given the following "courses" exist:
10
      | fullname | shortname | category |
11
      | Course 1 | C1 | 0 |
12
    And the following "users" exist:
13
      | username | firstname | lastname | email |
14
      | teacher1 | Teacher | First | teacher1@example.com |
15
      | student1 | Student | First | student1@example.com |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher1 | C1 | editingteacher |
19
      | student1 | C1 | student |
20
    And the following "blocks" exist:
21
      | blockname | contextlevel | reference | pagetypepattern | defaultregion |
22
      | comments  | Course       | C1        | course-view-*   | side-pre      |
23
    And I am on the "Course 1" course page logged in as student1
24
    And I add "Comment from student1" comment to comments block
25
    And I am on the "Course 1" course page logged in as teacher1
26
    And I add "Comment from teacher1" comment to comments block
27
    When I delete "Comment from student1" comment from comments block
28
    Then I should not see "Comment from student1"
29
    And I delete "Comment from teacher1" comment from comments block
30
    And I should not see "Comment from teacher1"