Skip to content

Commit 3ce0d28

Browse files
committed
add happy test
1 parent 239cb14 commit 3ce0d28

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/test/robotframework/series/creation/logic.robot

+15-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Test Setup Before Test
77
Force Tags series logic
88

99
*** Test Cases ***
10-
Create series by filling only required fields
11-
[Documentation] Verify creation of series by filling only mandatory fields
10+
Create series by filling only required fields and providing an image
11+
[Documentation] Verify creation of series by filling only mandatory fields (with image)
1212
Select From List By Label id=category Sport
1313
Input Text id=quantity 2
1414
Choose File id=image ${MAIN_RESOURCE_DIR}${/}test.png
@@ -20,6 +20,19 @@ Create series by filling only required fields
2020
Element Text Should Be id=perforated Yes
2121
Page Should Contain Image id=series-image-1
2222

23+
Create series by filling only required fields and providing a URL to image
24+
[Documentation] Verify creation of series by filling only mandatory fields (with an image URL)
25+
Select From List By Label id=category Sport
26+
Input Text id=quantity 1
27+
Input Text id=image-url ${SITE_URL}/image/1
28+
Submit Form id=add-series-form
29+
${location}= Get Location
30+
Should Match Regexp ${location} /series/\\d+
31+
Element Text Should Be id=category_name Sport
32+
Element Text Should Be id=quantity 1
33+
Element Text Should Be id=perforated Yes
34+
Page Should Contain Image id=series-image-1
35+
2336
Create series by filling all fields
2437
[Documentation] Verify creation of series by filling all fields
2538
[Tags] unstable

0 commit comments

Comments
 (0)