Skip to content

Commit 32c3c63

Browse files
committed
test(series/search/validation.robot): finding series by catalog number
Fixes php-coder#340
1 parent 6dcb3f4 commit 32c3c63

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/main/webapp/WEB-INF/views/series/search_result.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h3 class="text-center" th:text="${#strings.capitalize(search_results)}">
8585
<span th:if="${series.country != null}" th:remove="tag">
8686
<a href="../country/info.html" th:href="@{${INFO_COUNTRY_PAGE}(slug=${series.country.slug})}" th:text="${series.country.name}">Italy</a>&nbsp;&raquo;
8787
</span>
88-
<a href="../series/info.html" th:href="@{${INFO_SERIES_PAGE}(id=${series.id})}">
88+
<a th:id="'series-'+${series.id}" href="../series/info.html" th:href="@{${INFO_SERIES_PAGE}(id=${series.id})}">
8989
<span th:remove="tag" th:if="${series.releaseYear != null}" th:text="|${series.releaseYear}, |">1999, </span>
9090
<span th:remove="tag" th:text="|${series.quantity}&nbsp;${series.quantity != 1 ? '__#{t_stamps}__' : '__#{t_stamp}__'}|">7&nbsp;stamps</span>
9191
<span th:remove="tag" th:if="${not series.perforated}" th:text="|(#{t_wo_perforation_short})|">(without perforation)</span>

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,23 @@ Search series by non-existing catalog number
1313
Submit Form id=search-series-form
1414
Element Text Should Be id=no-series-found No series found
1515

16+
Search series by existing catalog number
17+
[Template] Search Series By Catalog By Name And Number
18+
michel 99
19+
scott 99
20+
yvert 99
21+
gibbons 99
22+
1623
*** Keywords ***
1724
Before Test Suite
1825
Open Browser ${SITE_URL}/ ${BROWSER}
1926
Register Keyword To Run On Failure Log Source
27+
28+
Search Series By Catalog By Name And Number
29+
[Arguments] ${catalogName} ${catalogNumber}
30+
Go To ${SITE_URL}
31+
Input Text id=catalogNumber ${catalogNumber}
32+
Select From List By Value id=catalogName ${catalogName}
33+
Submit Form id=search-series-form
34+
Link Should Point To id=series-1 ${SITE_URL}/series/1
35+

0 commit comments

Comments
 (0)