Skip to content

Commit 82f7825

Browse files
committed
refactor: use id attribute instead of class for locating an element.
Should be in c1ff817 commit.
1 parent f0f9287 commit 82f7825

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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
@@ -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 class="search-results" th:if="${not #lists.isEmpty(searchResults)}" th:remove="all-but-first">
80+
<ul id="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-anonymous.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Search Series By Catalog Name And Number
3333
Input Text id=catalogNumber ${number}
3434
Select From List By Value id=catalogName ${name}
3535
Submit Form id=search-series-form
36-
Page Should Contain Element css=.search-results [href="/series/1"]
36+
Page Should Contain Element css=#search-results [href="/series/1"]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Search Series By Catalog Name And Number In Collection
3838
Select From List By Value id=catalogName ${name}
3939
Select Checkbox id=in-collection
4040
Submit Form id=search-series-form
41-
Page Should Contain Element css=.search-results [href="/series/1"]
41+
Page Should Contain Element css=#search-results [href="/series/1"]

0 commit comments

Comments
 (0)