HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_nice,proc_terminate,pfsockopen,dl,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,leak,apache_child_terminate
Upload Files
File: /home/enamadmin/public_html/aaelearningb/course/format/tests/behat/courseindex_language.feature
@core @core_course @core_courseformat
Feature: The course index language should change according to user preferences.
  As a user in a course
  I should see the same language in the course index and the course content when I switch languages.

  Background:
    Given remote langimport tests are enabled
    And the following "users" exist:
      | username | firstname | lastname | email                |
      | teacher1 | Teacher   | 1        | teacher1@example.com |
      | student1 | Student   | 1        | student1@example.com |
    And the following "course" exists:
      | fullname         | Course 1 |
      | shortname        | C1       |
      | category         | 0        |
      | enablecompletion | 1        |
      | numsections      | 4        |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | student1 | C1     | student        |
      | teacher1 | C1     | editingteacher |
    And the following "language pack" exists:
      | language | fr |
    And I change window size to "large"

  @javascript
  Scenario Outline: Course index is refreshed when we change language.
    Given I am on the "C1" "Course" page logged in as "<user>"
    When I follow "Language" in the user menu
    Then I should see "Language selector" user submenu
    And I follow "Français ‎(fr)‎"
    Then I should see "Généralités" in the "courseindex-content" "region"
    Examples:
      | user     |
      | student1 |
      | teacher1 |