chore: improve number widget tests (#2223)

This commit is contained in:
Luis Correia
2019-03-25 18:17:26 +00:00
committed by Shawn Erquhart
parent 2d59602660
commit 19824fd1dd
4 changed files with 258 additions and 154 deletions

View File

@ -60,7 +60,13 @@ collections: # A list of collections the CMS should be able to edit
name: posts
widget: 'object'
fields:
- { label: 'Number of posts on frontpage', name: front_limit, widget: number }
- {
label: 'Number of posts on frontpage',
name: front_limit,
widget: number,
min: 1,
max: 10,
}
- { label: 'Default Author', name: author, widget: string }
- { label: 'Default Thumbnail', name: thumb, widget: image, class: 'thumb', required: false }