__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@block @block_comments
Feature: Delete comment block messages
In order to refine comment block's contents
As a teacher
In need to delete comments from courses
@javascript
Scenario: Delete comments with Javascript enabled
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | First | teacher1@example.com |
| student1 | Student | First | student1@example.com |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And the following "blocks" exist:
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
| comments | Course | C1 | course-view-* | side-pre |
And I am on the "Course 1" course page logged in as student1
And I add "Comment from student1" comment to comments block
And I am on the "Course 1" course page logged in as teacher1
And I add "Comment from teacher1" comment to comments block
When I delete "Comment from student1" comment from comments block
Then I should not see "Comment from student1"
And I delete "Comment from teacher1" comment from comments block
And I should not see "Comment from teacher1"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| add_comment.feature | File | 5.21 KB | 0777 |
|
| behat_block_comments.php | File | 4.27 KB | 0777 |
|
| block_comment_activity.feature | File | 1.49 KB | 0777 |
|
| block_comment_dashboard.feature | File | 1.14 KB | 0777 |
|
| block_comment_frontpage.feature | File | 958 B | 0777 |
|
| delete_comment.feature | File | 1.37 KB | 0777 |
|