Open JadeMaveric opened 3 years ago
Hey, can I work on this issue as a participant of GSSOC'21 ?
@kernal053 Yes, you can
Thank you, @Vidisha-kayal . Can any admin assign it to me ?
Hi, the validations are being performed on the client side only and not on the server side. So, if instead of creating the test using the UI I send a post request to the server with marks as negative, the test will be created. Therefore, validations need to be performed server side as well and in case the validations fail, the user should be redirected accordingly
@aavishkarmishra , I would like to work on this issue
Describe the bug There are multiple validation failures while creating tests.
To Reproduce Steps to reproduce the behavior:
Create a new test
Give it negative marks (-100)
Give it negative duration (0 hours, -20 mins) (-ve hours gives a warning)
Add question, all 4 options need to be selected
Add negative no. of questions and negative marks
Press next after verifying
Check the dashboard (local build on latest master branch)
Expected behavior Error message should be shown whenever a validation fails. And the next button blocked until the mistakes are corrected.
Desktop (please complete the following information):