X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/blocks/comments/tests/behat
home
/
cbholdings
/
pasukulu
/
blocks
/
comments
/
tests
/
behat
/
📁
..
📄
add_comment.feature
(4.95 KB)
📄
behat_block_comments.php
(4.27 KB)
📄
block_comment_activity.feature
(1.49 KB)
📄
block_comment_course.feature
(1.25 KB)
📄
block_comment_dashboard.feature
(1.14 KB)
📄
block_comment_frontpage.feature
(958 B)
📄
delete_comment.feature
(1.37 KB)
Editing: block_comment_activity.feature
@block @block_comments Feature: Enable Block comments on an activity page and view comments In order to enable the comments block on an activity page As a teacher I can add the comments block to an activity page Scenario: Add the comments block on an activity page and add comments Given the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | Frist | 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 "activities" exist: | activity | course | idnumber | name | intro | | page | C1 | page1 | Test page name | Test page description | And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | comments | Activity module | page1 | mod-page-* | side-pre | And I am on the "Test page name" "page activity" page logged in as teacher1 And I follow "Show comments" And I add "I'm a comment from the teacher" comment to comments block When I am on the "Test page name" "page activity" page logged in as student1 And I follow "Show comments" Then I should see "I'm a comment from the teacher"
Upload File
Create Folder