Skip to content

Commit f8eee29

Browse files
committed
/series/import/request: allow URLs longer than 285 characters.
Update validation to match the database. Correction for 33dd902 commit. Addressed to #772
1 parent e70ece3 commit f8eee29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/ru/mystamps/web/Db.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static final class Series {
4141
}
4242

4343
public static final class SeriesImportRequest {
44-
public static final int URL_LENGTH = 285;
44+
public static final int URL_LENGTH = 767;
4545
}
4646

4747
public static final class SeriesImportRequestStatus {

src/test/robotframework/series/import/validation.robot

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Submit request with blank required field
1515
Submit request with too long url
1616
[Documentation] Verify validation of too long url
1717
${letter}= Set Variable j
18-
Input Text id=url http://${letter * 285}
18+
Input Text id=url http://${letter * 767}
1919
Submit Form id=import-series-form
20-
Element Text Should Be id=url.errors Value is greater than allowable maximum of 285 characters
20+
Element Text Should Be id=url.errors Value is greater than allowable maximum of 767 characters
2121

2222
Submit request with invalid url
2323
[Documentation] Verify validation of invalid url

0 commit comments

Comments
 (0)