File tree 4 files changed +28
-1
lines changed
java/ru/mystamps/web/feature/series/sale
resources/liquibase/version
test/robotframework/series/sales
4 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 33
33
import java .math .BigDecimal ;
34
34
import java .util .Date ;
35
35
36
- // @todo #503 Add integration test to ensure that seller and buyer are different
37
36
// @todo #504 Add integration test to ensure that price and alternative price are different
38
37
// @todo #678 Add integration tests for price and alternative price: both or none are required
39
38
@ Getter
Original file line number Diff line number Diff line change 57
57
<include file =" 0.4/2018-10-16--similar_series.xml" relativeToChangelogFile =" true" />
58
58
<include file =" 0.4/2018-12-03--site_parsers.xml" relativeToChangelogFile =" true" />
59
59
<include file =" 0.4/2018-12-20--nullify_currency_without_price.xml" relativeToChangelogFile =" true" />
60
+ <include file =" 0.4/2019-05-25--test_participant_buyer_and_seller.xml" relativeToChangelogFile =" true" />
60
61
61
62
</databaseChangeLog >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <databaseChangeLog
3
+ xmlns=" http://www.liquibase.org/xml/ns/dbchangelog"
4
+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation=" http://www.liquibase.org/xml/ns/dbchangelog
6
+ http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd" >
7
+
8
+ <changeSet id =" create-participant-that-is-buyer-and-seller" author =" php-coder" context =" test-data" >
9
+ <comment >Creates buyers and sellers examples</comment >
10
+
11
+ <insert tableName =" transaction_participants" >
12
+ <column name =" id" value =" 4" />
13
+ <column name =" name" value =" Tommy Lee Jones" />
14
+ <column name =" url" value =" http://example.com/tommy-lee-jones" />
15
+ <column name =" is_buyer" valueBoolean =" true" />
16
+ <column name =" is_seller" valueBoolean =" true" />
17
+ </insert >
18
+
19
+ </changeSet >
20
+
21
+ </databaseChangeLog >
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ Create series sales with invalid url
18
18
Submit Form id=add-series-sales-form
19
19
Element Text Should Be id=url.errors Value must be a valid URL
20
20
21
+ Create series sale with the same seller and buyer
22
+ Select From List By Label id=seller Tommy Lee Jones
23
+ Select From List By Label id=buyer Tommy Lee Jones
24
+ Submit Form id=add-series-sales-form
25
+ Element Text Should Be id=buyer.errors Seller and buyer must be different
26
+
21
27
*** Keywords ***
22
28
Before Test Suite
23
29
Open Browser ${SITE_URL } /account/auth ${BROWSER }
You can’t perform that action at this time.
0 commit comments