Skip to content

Commit 0445781

Browse files
committed
test(series/search/validation.robot): add tests for searching the series by a catalog number.
Fixes #340
1 parent 41db2ea commit 0445781

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h3 class="text-center" th:text="${#strings.capitalize(search_results)}">
7777

7878
<div class="row">
7979
<div class="col-sm-4">
80-
<ul th:if="${not #lists.isEmpty(searchResults)}" th:remove="all-but-first">
80+
<ul class="search-results" th:if="${not #lists.isEmpty(searchResults)}" th:remove="all-but-first">
8181
<li th:each="series : ${searchResults}">
8282
<span th:if="${series.category != null}" th:remove="tag">
8383
<a href="../category/info.html" th:href="@{${INFO_CATEGORY_PAGE}(slug=${series.category.slug})}" th:text="${series.category.name}">Animals</a>&nbsp;&raquo;

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

+15
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,22 @@ 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] ${name} ${number}
30+
Go To ${SITE_URL}
31+
Input Text id=catalogNumber ${number}
32+
Select From List By Value id=catalogName ${name}
33+
Submit Form id=search-series-form
34+
Page Should Contain Element css=.search-results [href="/series/1"]

0 commit comments

Comments
 (0)