adaptlearning / adapt-contrib-assessmentResults

A component used to display a single assessment's results.
GNU General Public License v3.0
2 stars 24 forks source link

When "Allow retry once passed" option enabled in assessment, "Retry assessment" stops working in the assessmentResults component #86

Open lokeshece1 opened 6 months ago

lokeshece1 commented 6 months ago

Subject of the issue/enhancement/features

When "Allow retry once passed" option enabled in assessment, "Retry assessment" stops working in the assessmentResults component

Your environment

Steps to reproduce

Open the course in the Authoring tool 2) Update the Assessment settings for the article in the Questions page 3) Force rebuild the course 4) Open the Question page 5) Answer all questions correct 6) Go to the Assessment results page 7) Check that results are displayed 8) Click the Retry Assessment button

Expected behaviour

When “Allow retry once passed” is enabled, clicking the “Retry assessment” button in the results component should return to the page and reset all the questions. When it is enabled alongside “Reset on Revisit” all the questions should also reset when leaving and returning to the page (once the assessment has already been completed)

Actual behaviour

When “Allow retry once passed” is enabled, the “Retry Assessment” button stops working, so there is no way to actually reset the questions. When enabled alongside “Reset on Revisit” the questions do reset when leaving and returning to the page after completing all questions, however, the Assessment Results component never registers the assessment as complete.

Screenshots (if you can)

image

https://github.com/adaptlearning/adapt-contrib-assessment/assets/35100121/0d1eb3a4-9497-4707-9b41-88555dc35ef5

joe-allen-89 commented 3 months ago

Hi @lokeshece1,

I've just been testing this issue, can you confirm you have _routeToAssessment set to true in the assessmentResults component?

Thanks Joe

lokeshece1 commented 3 months ago

@joe-allen-89 The _routeToAssessment is currently set to false. Changing it to true does not alter the behavior.

Thanks Lokesh.K

oliverfoster commented 3 months ago

How many attempts do you have on the assessment?

lokeshece1 commented 3 months ago

Infinite attempts -1