mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-76537 behat: Month and day names are lang-dependent correct utf-8
Just verify that calendars are always displayed with correct UTF-8 and in the language the user is currently using.
This commit is contained in:
parent
7827edc78d
commit
357f784091
29
calendar/tests/behat/calendar_utf8.feature
Normal file
29
calendar/tests/behat/calendar_utf8.feature
Normal file
@ -0,0 +1,29 @@
|
||||
@core @core_calendar
|
||||
Feature: Verify that the day and month names are displayed using UTF-8
|
||||
In order to be able to use the calendar using different languages
|
||||
As a user
|
||||
I need to see the day and month names displayed properly
|
||||
|
||||
Background:
|
||||
Given remote langimport tests are enabled
|
||||
|
||||
Scenario Outline: View the calendar for December 2012 with correct UTF-8
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Language > Language packs" in site administration
|
||||
And I set the field "Available language packs" to "<lang>"
|
||||
And I press "Install selected language pack(s)"
|
||||
And I should see "Language pack '<lang>' was successfully installed"
|
||||
And I follow "Preferences" in the user menu
|
||||
And I follow "Preferred language"
|
||||
And I set the field "Preferred language" to "<lang>"
|
||||
And I press "Save changes"
|
||||
When I view the calendar for "12" "2022"
|
||||
Then I should see "<month>"
|
||||
And I should see "<day>"
|
||||
|
||||
Examples:
|
||||
| lang | month | day |
|
||||
| en_ar | December | Sat |
|
||||
| es | diciembre | Sáb |
|
||||
| fr | décembre | Sa |
|
||||
| ru | декабря | Сб |
|
Loading…
x
Reference in New Issue
Block a user