Skip to content

Commit acdbf24

Browse files
committed
Add integration test for validation of unique category slug.
Fix #494
1 parent 5652c3f commit acdbf24

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ Create category with existing name but in a different case
7272
Element Text Should Be id=name.errors Category already exists
7373
Element Text Should Be id=nameRu.errors Category already exists
7474

75+
Create category with non-existing name but existing slug
76+
[Documentation] Verify validation of non-unique slug
77+
Input Text id=name Prehistoric - animals
78+
# clear a value after a previous test to prevent its validation and looking up in database
79+
Clear Element Text id=nameRu
80+
Submit Form id=add-category-form
81+
Element Text Should Be id=name.errors Category with similar name already exists
82+
7583
*** Keywords ***
7684
Before Test Suite
7785
[Documentation] Login as admin and go to create category page

0 commit comments

Comments
 (0)