Skip to content

Commit 157c14a

Browse files
committed
series/import/request-logic.robot: submit a form and check the values on the next page.
Fix #716
1 parent de0f253 commit 157c14a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/main/webapp/WEB-INF/views/series/import/info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ <h3 th:text="#{t_gathered_data}">
104104
</small>
105105
</div>
106106

107-
<form id="import-series-form"
107+
<form id="create-series-form"
108108
method="post"
109109
enctype="multipart/form-data"
110110
action="../info.html"

src/test/robotframework/series/import/request-logic.robot

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ Import series from an external site (in English, use category, country and date
2929
Checkbox Should Be Selected id=perforated
3030
Should Be Equal ${imageUrl} http://127.0.0.1:8080/image/1
3131
Should Be Equal ${year} 2000
32-
# @todo #709 series/import/request-logic.robot:
33-
# submit a form and check the values on the next page
32+
Input Text id=quantity 1
33+
Submit Form id=create-series-form
34+
${location}= Get Location
35+
Should Match Regexp ${location} /series/\\d+
36+
Element Text Should Be id=category_name Prehistoric animals
37+
Element Text Should Be id=country_name Italy
38+
Element Text Should Be id=issue_date 2000
39+
Element Text Should Be id=quantity 1
40+
Element Text Should Be id=perforated Yes
41+
Page Should Contain Image id=series-image-1
3442

3543
Import series from an external site (in Russian, use description locator)
3644
[Documentation] Verify import from a page in Russian and shared locator

0 commit comments

Comments
 (0)