Skip to content

Commit 17b0e1f

Browse files
committed
improve: michel catalog numbers now can be up to 5 characters long and contain letters.
Fix #1277
1 parent c264b39 commit 17b0e1f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/ru/mystamps/web/feature/series/AddSeriesForm.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public class AddSeriesForm implements AddSeriesDto, HasImageOrImageUrl, Nullable
9898
@NotNull
9999
private Boolean perforated;
100100

101-
@CatalogNumbers
101+
// @todo #1277 /series/add: add integration test to check that Michel numbers may contain letter
102+
@CatalogNumbers(allowLetters = true)
102103
private String michelNumbers;
103104

104105
@Price

src/test/robotframework/series/creation/validation-user.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Invalid Catalog Numbers Should Be Rejected
8888
${alnumMessage} Catenate SEPARATOR=${SPACE}
8989
... Value must be a list of numbers separated by comma.
9090
... Any number may end with a latin letter in lower case
91-
Element Text Should Be id:michelNumbers.errors Value must be a list of numbers separated by comma
91+
Element Text Should Be id:michelNumbers.errors ${alnumMessage}
9292
Element Text Should Be id:scottNumbers.errors ${alnumMessage}
9393
Element Text Should Be id:yvertNumbers.errors ${alnumMessage}
9494
Element Text Should Be id:gibbonsNumbers.errors Value must be a list of numbers separated by comma

0 commit comments

Comments
 (0)