Skip to content

Commit 648bc83

Browse files
committed
series/import/request-logic.robot: test category name.
Addressed to #688
1 parent 0e85423 commit 648bc83

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ Import series from an external site (in English, use category, country and date
2323
Element Text Should Be id=parsed-issue-year 2000
2424
Submit Form id=start-import-series-form
2525
${encodedUrl}= Encode URL http://127.0.0.1:8080/image/1
26-
Location Should Be ${SITE_URL}/series/add?category=prehistoric-animals&country=italy&image_url=${encodedUrl}
27-
# TODO: verify category
26+
Location Should Be ${SITE_URL}/series/add?category=prehistoric-animals&country=italy&image_url=${encodedUrl}&year=2000
27+
${category}= Get Selected List Label id=category
28+
Should Be Equal ${category} Prehistoric animals
2829
# TODO: verify country
2930
# We can't use "Textfield Value Should Be" because it causes NPE:
3031
# https://github.com/MarkusBernhardt/robotframework-selenium2library-java/issues/92
@@ -47,8 +48,9 @@ Import series from an external site (in Russian, use description locator)
4748
Element Text Should Be id=parsed-issue-year 2000
4849
Submit Form id=start-import-series-form
4950
${encodedUrl}= Encode URL http://localhost:8080/image/1
50-
Location Should Be ${SITE_URL}/series/add?category=prehistoric-animals&country=italy&image_url=${encodedUrl}
51-
# TODO: verify category
51+
Location Should Be ${SITE_URL}/series/add?category=prehistoric-animals&country=italy&image_url=${encodedUrl}&year=2000
52+
${category}= Get Selected List Label id=category
53+
Should Be Equal ${category} Prehistoric animals
5254
# TODO: verify country
5355
# We can't use "Textfield Value Should Be" because it causes NPE:
5456
# https://github.com/MarkusBernhardt/robotframework-selenium2library-java/issues/92

0 commit comments

Comments
 (0)