Skip to content

Commit 48f1a11

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

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ public void shouldHaveStandardStructure() {
6565
checkStandardStructure();
6666
}
6767

68-
@Test(groups = "valid", dependsOnGroups = "std")
69-
public void countryNameEnWithAllowedCharactersShouldBeAccepted() {
70-
page.addCountry("Valid-Name Country", "НазваниеСтраны");
71-
72-
assertThat(page).field("name").hasNoError();
73-
}
74-
7568
@Test(groups = "valid", dependsOnGroups = "std")
7669
public void countryNameRuWithAllowedCharactersShouldBeAccepted() {
7770
page.addCountry("ValidName", "Ёё Нормальное-название страны");

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ Country name should be modified by replacing multiple spaces by one
2222
Textfield Value Should Be id=name t3 st
2323
Textfield Value Should Be id=nameRu т3 ст
2424

25+
Country name in English should accept all allowed characters
26+
[Documentation] Verify that various characters in name are allowed
27+
Input Text id=name Valid-Name Country
28+
# we also type invalid name in Russian to stay on this page
29+
Input Text id=nameRu 1
30+
Submit Form id=add-country-form
31+
Page Should Not Contain Element id=name.errors
32+
2533
*** Keywords ***
2634
Before Test Suite
2735
[Documentation] Login as admin and go to create country page

0 commit comments

Comments
 (0)