[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/blocks/comments/tests/behat/ -> delete_comment.feature (source)

   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 I log in as "teacher1"
  21      And I follow "Course 1"
  22      And I turn editing mode on
  23      And I add the "Comments" block
  24      And I log out
  25      And I log in as "student1"
  26      And I follow "Course 1"
  27      And I add "Comment from student1" comment to comments block
  28      And I log out
  29      And I log in as "teacher1"
  30      And I follow "Course 1"
  31      And I add "Comment from teacher1" comment to comments block
  32      When I delete "Comment from student1" comment from comments block
  33      Then I should not see "Comment from student1"
  34      And I delete "Comment from teacher1" comment from comments block
  35      And I should not see "Comment from teacher1"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1