|
32 | 32 |
|
33 | 33 | import static ru.mystamps.web.tests.TranslationUtils.tr;
|
34 | 34 | import static ru.mystamps.web.tests.fest.PageWithFormAssert.assertThat;
|
35 |
| -import static ru.mystamps.web.validation.ValidationRules.CATEGORY_NAME_MAX_LENGTH; |
36 | 35 |
|
37 | 36 | public class WhenAdminAddCategory extends WhenAnyUserAtAnyPageWithForm<AddCategoryPage> {
|
38 | 37 |
|
@@ -77,22 +76,6 @@ public void shouldHaveStandardStructure() {
|
77 | 76 | checkStandardStructure();
|
78 | 77 | }
|
79 | 78 |
|
80 |
| - @Test(groups = "invalid", dependsOnGroups = "std") |
81 |
| - public void categoryNameEnShouldNotBeTooLong() { |
82 |
| - String longCategoryName = StringUtils.repeat("e", CATEGORY_NAME_MAX_LENGTH + 1); |
83 |
| - page.addCategory(longCategoryName, TEST_CATEGORY_NAME_RU); |
84 |
| - |
85 |
| - assertThat(page).field("name").hasError(tr("value.too-long", CATEGORY_NAME_MAX_LENGTH)); |
86 |
| - } |
87 |
| - |
88 |
| - @Test(groups = "invalid", dependsOnGroups = "std") |
89 |
| - public void categoryNameRuShouldNotBeTooLong() { |
90 |
| - String longCategoryName = StringUtils.repeat("я", CATEGORY_NAME_MAX_LENGTH + 1); |
91 |
| - page.addCategory(TEST_CATEGORY_NAME_EN, longCategoryName); |
92 |
| - |
93 |
| - assertThat(page).field("nameRu").hasError(tr("value.too-long", CATEGORY_NAME_MAX_LENGTH)); |
94 |
| - } |
95 |
| - |
96 | 79 | @Test(groups = "invalid", dependsOnGroups = "std")
|
97 | 80 | public void categoryNameEnShouldBeUnique() {
|
98 | 81 | page.addCategory(existingCategoryNameEn, TEST_CATEGORY_NAME_RU);
|
|
0 commit comments