File tree 3 files changed +38
-2
lines changed
resources/liquibase/version/0.4.1
webapp/WEB-INF/views/series
test/robotframework/collection/remove-series
3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 6
6
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd" >
7
7
8
8
<changeSet id =" create-a-user-with-a-series-in-his-collection" author =" mukeshk" context =" test-data" >
9
- <comment >Creates the user "seriesowner" that has series #1 in its collection</comment >
9
+ <comment >Creates the user "seriesowner" that has series #1 and #3 in its collection</comment >
10
10
<insert tableName =" users" >
11
11
<column name =" login" value =" seriesowner" />
12
12
<column name =" role" value =" USER" />
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 =" 3" />
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
1
+ *** Settings ***
2
+ Documentation Verify series removal from a user's collection
3
+ Library SeleniumLibrary
4
+ Resource ../../auth.steps.robot
5
+ Suite Setup Before Test Suite
6
+ Suite Teardown Close Browser
7
+ Force Tags collection series logic
8
+
9
+ *** Test Cases ***
10
+ Remove a series from user's collection
11
+ [Tags] unstable
12
+ Go To ${SITE_URL } /series/3
13
+ Submit Form id=remove-series-form
14
+ Page Should Not Contain Link css=[href="/series/3"]
15
+
16
+ *** Keywords ***
17
+ Before Test Suite
18
+ Open Browser ${SITE_URL } /account/auth ${BROWSER }
19
+ Register Keyword To Run On Failure Log Source
20
+ Log In As login=seriesowner password=test
You can’t perform that action at this time.
0 commit comments