File tree 2 files changed +18
-1
lines changed
main/webapp/WEB-INF/views/site
test/robotframework/site/change-lang
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 25
25
th:with ="lang=${#locale.language == 'en' ? 'ru' : 'en'},langName=${#locale.language == 'en' ? 'Русский' : 'English'} ">
26
26
< span class ="lang-xs " lang ="ru "
27
27
th:lang ="${lang} "> </ span >
28
- < a href ="javascript:void(0) " hreflang ="ru "
28
+ < a id =" change-lang-link " href ="javascript:void(0) " hreflang ="ru "
29
29
th:href ="|?lang=${lang}| " th:hreflang ="${lang} " th:text ="${langName} "> Русский</ a >
30
30
</ div > <!--
31
31
Original file line number Diff line number Diff line change
1
+ *** Settings ***
2
+ Documentation Verify change language scenario
3
+ Library SeleniumLibrary
4
+ Suite Setup Before Test Suite
5
+ Suite Teardown Close Browser
6
+ Force Tags main-page lang logic
7
+
8
+ *** Test Cases ***
9
+ Language should be changed after switching language
10
+ Element Text Should Be id=logo My stamps
11
+ Click Link id=change-lang-link
12
+ Element Text Should Be id=logo Мои марки
13
+
14
+ *** Keywords ***
15
+ Before Test Suite
16
+ Open Browser ${SITE_URL } / ${BROWSER }
17
+ Register Keyword To Run On Failure Log Source
You can’t perform that action at this time.
0 commit comments