Skip to content

Commit 19469a3

Browse files
committed
test: ensure that stamps quantity is specified by default when user adds a series to the collection.
Fix #873
1 parent 5f031b6 commit 19469a3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/main/java/ru/mystamps/web/feature/collection/AddToCollectionForm.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import static ru.mystamps.web.feature.series.SeriesValidation.MIN_STAMPS_IN_SERIES;
2929

3030
// @todo #477 Add to collection: integration test for invisible quantity for a series with 1 stamp
31-
// @todo #477 Add to collection: series quantity should be specified by default
3231
// @todo #477 Add to collection: add integration test for custom number of stamps
3332
// @todo #663 Add to collection: add integration test for specifying a price
3433
@Getter

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ <h5 class="text-center" th:text="#{t_similar_series}">
368368
<p th:text="#{t_series_not_in_collection}">
369369
Series isn't part of your collection
370370
</p>
371-
<p th:if="${series.quantity != 1}">
371+
<p id="number-of-stamps-block" th:if="${series.quantity != 1}">
372372
<span th:text="#{t_i_have}" th:remove="tag">I have</span>
373373
<input id="number-of-stamps"
374374
type="number"

src/test/robotframework/collection/add-series/logic.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Force Tags collection series logic
99
*** Test Cases ***
1010
Add a series to user's collection
1111
Go To ${SITE_URL}/series/2
12+
Element Text Should Be id:number-of-stamps-block I have 2 out of 2 stamps
1213
Submit Form id:add-series-form
1314
Page Should Contain Link css:[href="/series/2"]
1415

0 commit comments

Comments
 (0)