@@ -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