__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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
Feature: Zero state on my overview block
  In order to know what should be the next step
  As a user
  I should see the proper information based on my capabilities

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                | idnumber |
      | user     | User      | X        | user@example.com     | U1       |
      | manager  | Manager   | X        | manager@example.com  | M1       |
    And the following "role assigns" exist:
      | user    | role    | contextlevel | reference |
      | manager | manager | System       |           |

  Scenario: Users with no permissions don't see any CTA
    Given I am on the "My courses" page logged in as "user"
    When I should see "You're not enrolled in any courses."
    Then I should see "Once you're enrolled in a course, it will appear here."
    And I should not see "Create course"
    And I should not see "Request a course"

  Scenario: Users with permissions to request a course should see a Request course button
    Given the following "permission overrides" exist:
      | capability            | permission | role  | contextlevel | reference |
      | moodle/course:request | Allow      | user  | System       |           |
    When I am on the "My courses" page logged in as "user"
    Then I should see "Request your first course"
    And "Moodle documentation" "link" should exist
    And "Quickstart guide" "link" should exist
    And "Request a course" "button" should exist
    And I click on "Request a course" "button"
    And I should see "Details of the course"
    # Quickstart guide link should not be displayed when $CFG->coursecreationguide is empty.
    But the following config values are set as admin:
      | coursecreationguide | |
    And I am on the "My courses" page
    And "Moodle documentation" "link" should exist
    And "Quickstart guide" "link" should not exist

  Scenario: Users with permissions to create a course when there is no course created
    Given I am on the "My courses" page logged in as "manager"
    When I should see "Create your first course"
    Then "Moodle documentation" "link" should exist
    And "Quickstart guide" "link" should exist
    And "Manage courses" "button" should not exist
    And "Manage course categories" "button" should exist
    And "Create course" "button" should exist
    And I click on "Create course" "button"
    And I should see "Add a new course"
    # Quickstart guide link should not be displayed when $CFG->coursecreationguide is empty.
    But the following config values are set as admin:
      | coursecreationguide | |
    And I am on the "My courses" page
    And "Moodle documentation" "link" should exist
    And "Quickstart guide" "link" should not exist

  Scenario: Users with permissions to create a course but is not enrolled in any existing course
    Given the following "course" exists:
      | fullname         | Course 1 |
      | shortname        | C1       |
    When I am on the "My courses" page logged in as "manager"
    Then I should see "You're not enrolled in any courses."
    Then I should see "Once you're enrolled in a course, it will appear here."
    And "Manage courses" "button" should exist
    And "Create course" "button" should exist
    And I click on "Create course" "button"
    And I should see "Add a new course"
    And I am on the "My courses" page
    And I click on "Manage courses" "button"
    And I should see "Course 1"

  Scenario: Users with permissions to create but not to manage courses and is not enrolled in any existing course
    Given the following "permission overrides" exist:
      | capability             | permission | role     | contextlevel | reference |
      | moodle/category:manage | Prohibit   | manager  | System       |           |
    And the following "course" exists:
      | fullname         | Course 1 |
      | shortname        | C1       |
    When I am on the "My courses" page logged in as "manager"
    Then I should see "You're not enrolled in any courses."
    Then I should not see "To view all courses on this sie, go to Manage courses"
    And "Manage courses" "button" should not exist
    And "Create course" "button" should exist
    And I click on "Create course" "button"
    And I should see "Add a new course"

  @javascript @accessibility
  Scenario: Evaluate the accessibility of the My courses (zero state)
    When I am on the "My courses" page logged in as "manager"
    Then the page should meet accessibility standards

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