Skip to content

Commit 5db2095

Browse files
committed
test(series/sales/validation.robot): add integration test to ensure that price and alternative price are different.
Fix #1010
1 parent a241587 commit 5db2095

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/ru/mystamps/web/feature/series/sale/AddSeriesSalesForm.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import java.math.BigDecimal;
3434
import java.util.Date;
3535

36-
// @todo #504 Add integration test to ensure that price and alternative price are different
3736
// @todo #678 Add integration tests for price and alternative price: both or none are required
3837
@Getter
3938
@Setter

src/test/robotframework/series/sales/validation.robot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ Create series sale with invalid url
1818
Submit Form id=add-series-sales-form
1919
Element Text Should Be id=url.errors Value must be a valid URL
2020

21+
Create series sale with the prices in the same currency
22+
Select From List By Label id=currency USD
23+
Select From List By Label id=alt-currency USD
24+
Submit Form id=add-series-sales-form
25+
Element Text Should Be id=alt-currency.errors Price and alternative price must be in a different currencies
26+
2127
Create series sale with the same seller and buyer
2228
Select From List By Label id=seller Tommy Lee Jones
2329
Select From List By Label id=buyer Tommy Lee Jones

0 commit comments

Comments
 (0)