File tree 5 files changed +43
-1
lines changed
resources/liquibase/test-data
webapp/WEB-INF/views/series/import
test/robotframework/series/import
5 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 34
34
35
35
</changeSet >
36
36
37
+ <changeSet id =" add-series-parsed-data-for-gh1279" author =" php-coder" context =" test-data" >
38
+
39
+ <insert tableName =" series_import_parsed_data" >
40
+ <column name =" request_id" valueComputed =" (SELECT id FROM series_import_requests WHERE url = 'http://example.com/issue/1279')" />
41
+ <column name =" created_at" valueComputed =" ${NOW}" />
42
+ <column name =" updated_at" valueComputed =" ${NOW}" />
43
+ </insert >
44
+
45
+ </changeSet >
46
+
37
47
</databaseChangeLog >
Original file line number Diff line number Diff line change 49
49
50
50
</changeSet >
51
51
52
+ <changeSet id =" add-import-request-for-gh1279" author =" php-coder" context =" test-data" >
53
+
54
+ <insert tableName =" series_import_requests" >
55
+ <column name =" url" value =" http://example.com/issue/1279" />
56
+ <column name =" status_id" valueComputed =" (SELECT id FROM series_import_request_statuses WHERE name = 'ParsingSucceeded')" />
57
+ <column name =" requested_at" valueComputed =" ${NOW}" />
58
+ <column name =" requested_by" valueComputed =" (SELECT id FROM users WHERE role = 'ADMIN' ORDER by id LIMIT 1)" />
59
+ <column name =" updated_at" valueComputed =" ${NOW}" />
60
+ </insert >
61
+
62
+ </changeSet >
63
+
52
64
</databaseChangeLog >
Original file line number Diff line number Diff line change 38
38
39
39
</changeSet >
40
40
41
+ <changeSet id =" add-series-sale-with-price-and-currency-only" author =" php-coder" context =" test-data" >
42
+
43
+ <insert tableName =" series_sales_import_parsed_data" >
44
+ <column name =" request_id" valueComputed =" (SELECT id FROM series_import_requests WHERE url = 'http://example.com/issue/1279')" />
45
+ <column name =" price" valueNumeric =" 100" />
46
+ <column name =" currency" value =" RUB" />
47
+ <column name =" created_at" valueComputed =" ${NOW}" />
48
+ <column name =" updated_at" valueComputed =" ${NOW}" />
49
+ </insert >
50
+
51
+ </changeSet >
52
+
41
53
</databaseChangeLog >
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ <h3 th:text="#{t_gathered_data}">
495
495
</ td >
496
496
</ tr >
497
497
498
- < tr th:if ="${hasSalesInfo and ( importSeriesForm.seriesSale.altPrice != null or !disabled) } "
498
+ < tr th:if ="${hasSalesInfo and importSeriesForm.seriesSale.altPrice != null} "
499
499
th:classappend ="${#fields.hasErrors('seriesSale.altPrice') or #fields.hasErrors('seriesSale.altCurrency') ? 'has-error' : ''} ">
500
500
< th >
501
501
< label for ="alt-price " class ="control-label " th:text ="#{t_alternative_price} ">
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ Seller info should be invisible where seller id has been extracted
21
21
Element Should Not Be Visible id:seller-name
22
22
Element Should Not Be Visible id:seller-url
23
23
24
+ Alternative price and currency should be invisible when they are empty
25
+ Go To ${SITE_URL } /series/import/request/5
26
+ Element Text Should Be id:request-url http://example.com/issue/1279
27
+ Textfield Value Should Be id:price 100
28
+ List Selection Should Be id:currency RUB
29
+ Element Should Not Be Visible id:alt-price
30
+ Element Should Not Be Visible id:alt-currency
31
+
24
32
*** Keywords ***
25
33
Before Test Suite
26
34
Open Browser ${SITE_URL } /account/auth ${BROWSER }
You can’t perform that action at this time.
0 commit comments