@@ -3,21 +3,22 @@ Documentation Verify category creation scenarios
3
3
Library Collections
4
4
Library Selenium2Library
5
5
Resource ../../auth.steps.robot
6
+ Resource ../../selenium.utils.robot
6
7
Suite Setup Before Test Suite
7
8
Suite Teardown After Test Suite
8
9
Test Setup Before Test
9
10
Force Tags category logic
10
11
11
12
*** Test Cases ***
12
13
Create category with name in English (fill only mandatory fields)
13
- Input Text id=name Cars
14
- Submit Form id=add-category-form
15
- Location Should Be ${SITE_URL } /category/cars
16
- Element Text Should Be id=page-header Cars
17
- Element Text Should Be id=msg-success Category has been added. ${ \n } Now you could proceed with creating series.
18
- Go To ${SITE_URL } /series/add
19
- ${availableCategories } = Get List Items id=category
20
- List Should Contain Value ${availableCategories } Cars
14
+ Input Text id=name Cars
15
+ Submit Form id=add-category-form
16
+ Location Should Be ${SITE_URL } /category/cars
17
+ Element Text Should Be id=page-header Cars
18
+ Element Text Should Match Regexp id=msg-success Category has been added\.[\\n\\r]+ Now you could proceed with creating series\ .
19
+ Go To ${SITE_URL } /series/add
20
+ ${availableCategories } = Get List Items id=category
21
+ List Should Contain Value ${availableCategories } Cars
21
22
# TODO: verify that after changing language, header will be in English
22
23
23
24
Create category with name in English and Russian
0 commit comments