Test values to be used below: text, 5, 5.0, 5.2, 5.20
Part 1
- in IDE: change data type for Qty field of widget unit to integer, int
- in Admin Console:
- go to Custom → Widgets section
- press Add button on toolbar
- for each of test values from above:
- enter test value in Qty field
- press Save button on the toolbar
- confirm, that form submit happened and you're returned back with validation error (not necessarily on Qty field)
- confirm, that value in the Qty field input stayed as-is
- confirm, that for text, 5.2 and 5.20 values (not other values) the validation error in Qty field was reported
Part 2
- in IDE: change data type for Qty field of widget unit to float, double
- in Admin Console:
- go to Custom → Widgets section
- press Add button on toolbar
- for each of test values from above:
- enter test value in Qty field
- press Save button on the toolbar
- confirm, that form submit happened and you're returned back with validation error (not necessarily on Qty field)
- confirm, that value in the Qty field input stayed as-is
- confirm, that for text value (not other values) the validation error in Qty field was reported
Part 3
- in IDE: change data type for Qty field of widget unit to string
- in Admin Console:
- go to Custom → Widgets section
- press Add button on toolbar
- for each of test values from above:
- enter test value in Qty field
- press Save button on the toolbar
- confirm, that form submit happened and you're returned back with validation error (not necessarily on Qty field)
- confirm, that value in the Qty field input stayed as-is
- confirm, that none of test values have triggered the validation error in Qty field