Skip to content

Commit 66b5ae0

Browse files
committed
test: user can specify arbitrary number of stamps when he adds a series to the collection.
Fix #874
1 parent baa7ecf commit 66b5ae0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-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: add integration test for custom number of stamps
3231
// @todo #663 Add to collection: add integration test for specifying a price
3332
@Getter
3433
@Setter

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@ Suite Teardown Close Browser
77
Force Tags collection series logic
88

99
*** Test Cases ***
10-
Add a series to user's collection
10+
Add a series to user's collection (all stamps)
1111
Go To ${SITE_URL}/series/2
1212
Element Text Should Be id:number-of-stamps-block I have 2 out of 2 stamps
1313
Submit Form id:add-series-form
1414
Page Should Contain Link css:[href="/series/2"]
1515
# See https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator
1616
Element Text Should Be css:[href="/series/2"] ~ .label-success New
1717

18+
Add a series to user's collection (incomplete series)
19+
Go To ${SITE_URL}/series/4
20+
Input Text id:number-of-stamps 2
21+
Submit Form id:add-series-form
22+
Page Should Contain Link css:[href="/series/4"]
23+
Element Text Should Be css:[href="/series/4"] ~ .label-success New
24+
# See https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator
25+
Element Text Should Be css:[href="/series/4"] ~ .label-default 2 out of 4
26+
1827
*** Keywords ***
1928
Before Test Suite
2029
Open Browser ${SITE_URL}/account/auth ${BROWSER}

0 commit comments

Comments
 (0)