Skip to content

Commit e49a963

Browse files
committed
WhenAdminAddCountry.countryNameRuWithAllowedCharactersShouldBeAccepted: port to Robot Framework.
Addressed to #530 No functional changes.
1 parent 48f1a11 commit e49a963

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/java/ru/mystamps/web/tests/cases/WhenAdminAddCountry.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import ru.mystamps.web.tests.page.AddCountryPage;
3030

3131
import static ru.mystamps.web.tests.TranslationUtils.tr;
32-
import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat;
3332

3433
public class WhenAdminAddCountry extends WhenAnyUserAtAnyPageWithForm<AddCountryPage> {
3534

@@ -65,13 +64,6 @@ public void shouldHaveStandardStructure() {
6564
checkStandardStructure();
6665
}
6766

68-
@Test(groups = "valid", dependsOnGroups = "std")
69-
public void countryNameRuWithAllowedCharactersShouldBeAccepted() {
70-
page.addCountry("ValidName", "Ёё Нормальное-название страны");
71-
72-
assertThat(page).field("nameRu").hasNoError();
73-
}
74-
7567
@Override
7668
protected void checkServerResponseCode() {
7769
// Ignore this check because server always returns 403 for anonymous user and our test suite

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ Country name in English should accept all allowed characters
3030
Submit Form id=add-country-form
3131
Page Should Not Contain Element id=name.errors
3232

33+
Country name in Russian should accept all allowed characters
34+
[Documentation] Verify that various characters in name are allowed
35+
Input Text id=nameRu Ёё Нормальное-название страны
36+
# we also type invalid name in English to stay on this page
37+
Input Text id=name 1
38+
Submit Form id=add-country-form
39+
Page Should Not Contain Element id=nameRu.errors
40+
3341
*** Keywords ***
3442
Before Test Suite
3543
[Documentation] Login as admin and go to create country page

0 commit comments

Comments
 (0)