Timed Exams & the Learning MFE

Hi Folks!

If I am not mistaken, the learning MFE should support timed exams since Maple, right?

We are considering using the Learning MFE in Nutmeg and I’ve started testing the timed exams, running nutmeg.1. In addition, to compare, I tested the same with maple.3.
The timed exams experience with the Learning MFE has the same issues in both versions, here’s what I am seeing:

  • If I click to start a timed exam, the exam opens, but:
    • only a small part of the content is visible, it’s not possible to scroll down and access all the content on the page.
    • the banner with a timer and “End my exam” button does not appear.
  • If I refresh the page, the timer becomes visible, I can access the whole exam content and I can end my exam.
  • If I click “End my exam” and confirm with “Yes, submit my timed exam”, the exam closes, but the timer is still running and visible.
  • If I refresh the page again, the timer disappears.

Has anyone experienced the same? Is there a fix or a workaround for this behaviour?

Thanks!

2 Likes

Hi Maari,

Yes the learning MFE does support exams as of the Maple release. I have not seen these issues before but I suspect this is the result of some communications to the backend failing. Are there any errors in your browser console when you attempt to start or end and exam?

Do you have a screenshots of rendering problems in your first bullet point?

1 Like

Following the BTR call, I have also just tested it with my demo nutmeg instance, and I couldn’t reproduct, the time was visisble as well as the problems.

To test enroll in this course:
Course: Open edX Demo Course | Zaat.dev Open edX Demo
Email: demo@zaat.dev
password: zaatdev

2 Likes

The same for me.
Just tested on development env.
There are some other bugs presented but not one you mentioned.

Testing preconditions:

  1. Newly created Non staff user.
  2. Enroll not from a direct link (there is a bug opening special exams after enrollment from direct link).
1 Like

Hi all, thank you so much for looking into this!

Testing preconditions:
1. Newly created Non staff user.

Right, I was so used to testing it with my staff account (delete the exam attempt / clear learner state) and didn’t try this. I created a new user now and with that the exam indeed worked!

  1. Enroll not from a direct link (there is a bug opening special exams after enrollment from direct link).

By direct link you mean the tpa-hinted link? That could also affect us, I’ll have to test it.

I checked the browser console (with my staff account) now, I saw a 404 from /api/user_tours/v1/{username}, followed with:

TypeError: undefined is not an object (evaluating '$(this).attr('href')[0]')  https://{host}/xblock/block-v1:test+timedexams+test+type@sequential+block@5af77a9ddeb84e9d8fec740f8b37ee86

I guess my issue was related to the user tours, we might be missing the backfilling step:
$ python ./manage.py lms backpopulate_user_tours

I’ll do some more testing in the morning.

Thanks again! :slight_smile:

1 Like

@mrtmm glad it helped.

By direct link I just mean link to the subsection or course for not enrolled user.

STR

  1. Create a new non staff user (or unenroll / delete attempt for existing user).
  2. Open link like Course | lms-nutmeg-dev.raccoongang.com
  3. Enroll to the course by inline enrollment link.
  4. Start Timed Exam.

Actual result is just a UI bug:

  1. We can see the wrong Alert message.
  2. We can see hidden result message because of the alert message.

If we enroll from dashboard - actual result is different.

1 Like

I guess my issue was related to the user tours, we might be missing the backfilling step:
$ python ./manage.py lms backpopulate_user_tours

Scratch that, it was not, after running the backpopulate step, I had one less error in the console but timed exams still did not work with the staff account.

But, I guess we’ll just have to accept that since with newly created non staff accounts it does work :slight_smile:

By direct link I just mean link to the subsection or course for not enrolled user.

Gotcha, thanks!

I tested hinted links now as well and did run into some issues with the Learning MFE but that is unrelated to timed exams so I’ll mark this solved. Thanks again!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.