Fix #2324: Changes in Submitted Answer List Items [A11y] #3353
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.
Explanation
Fix #2324
Problem
If learner submits multiple same incorrect answers or atleast 1 incorrect answer in case of DragAndDrop then the A11y Scanner fails because there are multiple same texts.
Solution
For this problem user experience is more important than A11y Scanner failures and therefore for all correct answers we append
Correct submitted answer
and for all incorrect answers we appendIncorrect submitted answer
. In this case even if learner enters same incorrect answer multiple types (for which Scanner fails) we are prioritising user experience here.Have a look at following comments: #2324 (comment) and #2324 (comment)
Output
device-2021-06-21-205721.mp4
device-2021-06-21-212738.mp4
device-2021-06-21-212849.mp4
Checklist