File tree 4 files changed +24
-2
lines changed
resources/liquibase/version
webapp/WEB-INF/views/series
test/robotframework/collection/add-series
4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
<include file =" 0.4.1/2019-07-21--series_sales_transaction_url_length.xml" relativeToChangelogFile =" true" />
9
9
<include file =" 0.4.1/2019-08-06--test_user_with_series_in_collection.xml" relativeToChangelogFile =" true" />
10
-
10
+
11
11
</databaseChangeLog >
Original file line number Diff line number Diff line change 30
30
<column name =" series_id" value =" 1" />
31
31
<column name =" number_of_stamps" value =" 1" />
32
32
</insert >
33
+
34
+ <insert tableName =" series" >
35
+ <column name =" quantity" valueNumeric =" 5" />
36
+ <column name =" perforated" valueBoolean =" TRUE" />
37
+ <column name =" category_id" valueNumeric =" 1" />
38
+ <column name =" created_at" valueComputed =" ${NOW}" />
39
+ <column name =" created_by" valueComputed =" (SELECT id FROM users WHERE login = 'seriesowner')" />
40
+ <column name =" updated_at" valueComputed =" ${NOW}" />
41
+ <column name =" updated_by" valueComputed =" (SELECT id FROM users WHERE login = 'seriesowner')" />
42
+ </insert >
43
+
44
+ <insert tableName =" collections_series" >
45
+ <column name =" collection_id" valueComputed =" (SELECT id FROM collections WHERE slug = 'seriesowner')" />
46
+ <column name =" series_id" valueNumeric =" 3" />
47
+ <column name =" number_of_stamps" valueNumeric =" 1" />
48
+ </insert >
33
49
</changeSet >
34
50
35
51
</databaseChangeLog >
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ <h5 class="text-center" th:text="#{t_similar_series}">
439
439
440
440
<!--/*/
441
441
<div class="col-sm-12" th:if="${isSeriesInCollection}" sec:authorize="hasAuthority('UPDATE_COLLECTION')">
442
- <form method="post" action="../collection/info.html" th:action="@{${INFO_SERIES_PAGE}(id=${series.id})}">
442
+ <form id="remove-series-form" method="post" action="../collection/info.html" th:action="@{${INFO_SERIES_PAGE}(id=${series.id})}">
443
443
<p th:text="#{t_series_in_collection}">
444
444
Series is part of your collection
445
445
</p>
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ Add a series to user's collection
13
13
Submit Form id=add-series-form
14
14
Page Should Contain Link css=[href="/series/2"]
15
15
16
+ Remove a series from user's collection
17
+ [Tags] unstable
18
+ Go To ${SITE_URL } /series/3
19
+ Submit Form id=remove-series-form
20
+ Page Should Not Contain Link css=[href="/series/3"]
21
+
16
22
*** Keywords ***
17
23
Before Test Suite
18
24
Open Browser ${SITE_URL } /account/auth ${BROWSER }
You can’t perform that action at this time.
0 commit comments