Skip to content

Commit a98bf63

Browse files
committed
Test category/country name in Russian.
This also improves an error message for the bug #633 Note that changing Россия to Чехия is very important because it also makes a bug dissappear. It happens because these words differs in their lengths. Prior this change, name in Russian was persisted incorrectly and represented as 6 question marks. At the same time we have Италия in the database that also was represented as 6 question marks. That't why we had "country already exists" error. But now we won't have it because Чехия will be represented as 5 question marks and country will be created successfully. But with this changes, test will fail later with more readable error message. Addressed to #633
1 parent 616acae commit a98bf63

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/test/robotframework/category/creation/logic.robot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Create category with name in English and Russian
2727
Submit Form id=add-category-form
2828
Location Should Be ${SITE_URL}/category/space
2929
Element Text Should Be id=page-header Space
30-
# TODO: verify that after changing language, header will be in Russian
30+
Go To ${SITE_URL}/category/space?lang=ru
31+
Element Text Should Be id=page-header Космос
3132

3233
*** Keywords ***
3334
Before Test Suite

src/test/robotframework/country/creation/logic.robot

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ Create country with name in English
2020

2121
Create country with name in English and Russian
2222
[Documentation] Verify creation of country by specifying names in 2 languages
23-
Input Text id=name Russia
24-
Input Text id=nameRu Россия
23+
Input Text id=name Czechia
24+
Input Text id=nameRu Чехия
2525
Submit Form id=add-country-form
26-
Location Should Be ${SITE_URL}/country/russia
27-
Element Text Should Be id=page-header Stamps of Russia
26+
Location Should Be ${SITE_URL}/country/czechia
27+
Element Text Should Be id=page-header Stamps of Czechia
28+
Go To ${SITE_URL}/country/czechia?lang=ru
29+
Element Text Should Be id=page-header Марки страны Чехия
2830

2931
*** Keywords ***
3032
Before Test Suite

0 commit comments

Comments
 (0)