forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-69788' of https://github.com/paulholden/moodle
- Loading branch information
Showing
5 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@core @core_admin | ||
Feature: Configure language settings for the site | ||
In order to configure language settings for the site | ||
As an admin | ||
I want to set language settings relevant to my site users | ||
|
||
Scenario: Set languages on language menu | ||
Given I log in as "admin" | ||
And I navigate to "Language > Language settings" in site administration | ||
When I set the field "Languages on language menu" to "en" | ||
And I press "Save changes" | ||
Then I should not see "Invalid language code" | ||
|
||
Scenario: Reset languages on language menu | ||
Given I log in as "admin" | ||
And I navigate to "Language > Language settings" in site administration | ||
When I set the field "Languages on language menu" to "" | ||
And I press "Save changes" | ||
Then I should not see "Invalid language code" | ||
|
||
Scenario Outline: Set languages on language menu with invalid language | ||
Given I log in as "admin" | ||
And I navigate to "Language > Language settings" in site administration | ||
When I set the field "Languages on language menu" to "<fieldvalue>" | ||
And I press "Save changes" | ||
Then I should see "Invalid language code: <invalidlang>" | ||
Examples: | ||
| fieldvalue | invalidlang | | ||
| xx | xx | | ||
| xx\|Bad | xx | | ||
| en,qq | qq | | ||
| en,qq\|Bad | qq | | ||
| en$$ | en$$ | | ||
| en$$\|Bad | en$$ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters