Fix: minimum values for book dimensions and weight to prevent zero or negative inputs #9733
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #9731
Fix: Set minimum values for book dimensions and weight inputs to prevent zero or negative values
Technical
Sets minimum values for the book's weight and dimensions inputs to ensure that users cannot enter zero or negative values.
Weight: Minimum value adjusted to 0.01
Dimensions: Minimum value set to 0.1
Testing
Verify Weight Input:
Navigate to the book weight input field.
Ensure the minimum allowed value is set to 0.01
Try entering value below minimum and ensure they are not accepted.
Check that the input fields correctly accept values at or above the minimum.
Verify Dimensions Input:
Navigate to the book dimensions inputs (height, width, depth).
Ensure the minimum allowed value is set to 0.1
Try entering value below minimum and ensure they are not accepted.
Check that the input fields correctly accept values at or above the minimum.
Screenshot
Stakeholders
@mekarpeles