Skip to content

Commit 1a5f4ff

Browse files
committed
TODO
1 parent 22bf110 commit 1a5f4ff

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

src/core/tests/behat/customlangstrings.feature

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/core/tests/behat/language.feature

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,31 @@ Feature: Test language changes
2020

2121
When I change language to "es" in the app
2222
Then I should find "Mis cursos" in the app
23+
24+
Scenario: Custom lang strings
25+
Given the following config values are set as admin:
26+
| customlangstrings | core.courses.mycourses\|Foo\|en
27+
core.courses.mycourses\| Foo amb espais \|ca
28+
core.courses.mycourses\| Foo amb espais \|en_us | tool_mobile |
29+
When I entered the app as "student1"
30+
Then I should be able to press "Foo" in the app
31+
32+
When I press the more menu button in the app
33+
And I press "App settings" in the app
34+
And I press "General" in the app
35+
And I press "Language" in the app
36+
And I press "Català" in the app
37+
And I press "Canvia a Català" in the app
38+
And I wait the app to restart
39+
40+
Then I should be able to press "Foo amb espais" in the app
41+
42+
When I press the more menu button in the app
43+
And I press "App settings" in the app
44+
And I press "General" in the app
45+
And I press "Language" in the app
46+
And I press "English (United States)" in the app
47+
And I press "Change to English (United States)" in the app
48+
And I wait the app to restart
49+
50+
Then I should be able to press "Foo" in the app

0 commit comments

Comments
 (0)