File tree 9 files changed +27
-8
lines changed
webapp/WEB-INF/views/series
java/ru/mystamps/web/tests/cases
robotframework/series/creation 9 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 926
926
-->
927
927
<variables >
928
928
<variable >BROWSER:htmlunitwithjs</variable >
929
- <variable >RESOURCE_DIR:${basedir} /src/test/resources</variable >
929
+ <variable >MAIN_RESOURCE_DIR:${basedir} /src/main/resources/test</variable >
930
+ <variable >TEST_RESOURCE_DIR:${basedir} /src/test/resources</variable >
930
931
<!-- See also ru.mystamps.web.Url.SITE constant -->
931
932
<variable >SITE_URL:http://127.0.0.1:8080</variable >
932
933
</variables >
Original file line number Diff line number Diff line change 27
27
<include file =" 0.4/2017-01-25--united_kingdom_country.xml" relativeToChangelogFile =" true" />
28
28
<include file =" 0.4/2017-01-29--add_updater_data_to_collections.xml" relativeToChangelogFile =" true" />
29
29
<include file =" 0.4/2017-05-11--image_preview.xml" relativeToChangelogFile =" true" />
30
+ <include file =" 0.4/2017-05-29--test_image.xml" relativeToChangelogFile =" true" />
30
31
31
32
</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.1.xsd" >
7
+
8
+ <changeSet id =" add-test-image" author =" php-coder" context =" test-data" >
9
+
10
+ <insert tableName =" images_data" >
11
+ <column name =" image_id" value =" 1" />
12
+ <column name =" content" valueBlobFile =" /test/test.png" />
13
+ </insert >
14
+
15
+ </changeSet >
16
+
17
+ </databaseChangeLog >
File renamed without changes.
Original file line number Diff line number Diff line change 106
106
< div class ="col-sm-4 ">
107
107
< div class ="row " th:each ="imageId,iter : ${series.imageIds} ">
108
108
< div class ="col-sm-12 ">
109
- < a target ="_blank " href ="../../../../.. /test/resources /test.png " th:href ="@{${GET_IMAGE_PAGE}(id=${imageId})} ">
109
+ < a target ="_blank " href ="../../../../resources /test/test.png " th:href ="@{${GET_IMAGE_PAGE}(id=${imageId})} ">
110
110
< img class ="img-responsive series-images "
111
111
id ="series-image-1 "
112
- src ="../../../../.. /test/resources /test.png "
112
+ src ="../../../../resources /test/test.png "
113
113
th:id ="|series-image-${iter.count}| "
114
114
th:src ="@{${GET_IMAGE_PREVIEW_PAGE}(id=${imageId})} " />
115
115
</ a >
Original file line number Diff line number Diff line change 41
41
*/
42
42
public class WhenAdminAddSeries extends WhenAnyUserAtAnyPageWithForm <AddSeriesPage > {
43
43
44
- private static final String SAMPLE_IMAGE_NAME = "test.png" ;
44
+ private static final String SAMPLE_IMAGE_NAME = "test/test .png" ;
45
45
private static final String SAMPLE_IMAGE_PATH ;
46
46
47
47
static {
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public class WhenUserAddSeries extends WhenAnyUserAtAnyPageWithForm<AddSeriesPag
52
52
private static final List <String > EXPECTED_YEARS =
53
53
new ArrayList <>(CURRENT_YEAR - SINCE_YEAR + 1 );
54
54
55
- private static final String SAMPLE_IMAGE_NAME = "test.png" ;
55
+ private static final String SAMPLE_IMAGE_NAME = "test/test .png" ;
56
56
private static final String EMPTY_IMAGE_NAME = "empty.jpg" ;
57
57
private static final String SAMPLE_IMAGE_PATH ;
58
58
private static final String EMPTY_IMAGE_PATH ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Create series by filling only required fields
11
11
[Documentation] Verify creation of series by filling only mandatory fields
12
12
Select From List By Label id=category Sport
13
13
Input Text id=quantity 2
14
- Choose File id=image ${RESOURCE_DIR }${/ } test.png
14
+ Choose File id=image ${MAIN_RESOURCE_DIR }${/ } test.png
15
15
Submit Form id=add-series-form
16
16
${location } = Get Location
17
17
Should Match Regexp ${location } /series/\\d+
@@ -27,7 +27,7 @@ Create series by filling all fields
27
27
Select Country Italy
28
28
Input Text id=quantity 3
29
29
Unselect Checkbox id=perforated
30
- Choose File id=image ${RESOURCE_DIR }${/ } test.png
30
+ Choose File id=image ${MAIN_RESOURCE_DIR }${/ } test.png
31
31
Click Element id=specify-issue-date-link
32
32
Select From List By Value id=day 4
33
33
Select From List By Value id=month 5
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Create series with quantity that is greater than 50
26
26
27
27
Create series with empty image
28
28
[Documentation] Verify validation of empty image
29
- Choose File id=image ${RESOURCE_DIR }${/ } empty.png
29
+ Choose File id=image ${TEST_RESOURCE_DIR }${/ } empty.png
30
30
Submit Form id=add-series-form
31
31
Element Text Should Be id=image.errors File must not be empty
32
32
You can’t perform that action at this time.
0 commit comments