The content library tests were failing to locate templates when rendering XBlocks, but since these tests are skipped in CI, the issue went undetected. This fix is marked temporary because a proper fix involves adding lms/templates to the cms.envs.test MAKO_TEMPLATE_DIRS_BASE list. This was tried, and caused unrelated tests to fail, and so we took this approach instead. See PR for full details.
17 lines
632 B
HTML
17 lines
632 B
HTML
<!--
|
|
common/tests/problem_ajax.html
|
|
Placeholder template for openedx content_library tests -->
|
|
<div id="problem_${element_id}" class="problems-wrapper" role="group"
|
|
aria-labelledby="${element_id}-problem-title"
|
|
data-problem-id="${id}" data-url="${ajax_url}"
|
|
data-problem-score="${current_score}"
|
|
data-problem-total-possible="${total_possible}"
|
|
data-attempts-used="${attempts_used}"
|
|
data-content="${content | h}"
|
|
data-graded="${graded}">
|
|
<p class="loading-spinner">
|
|
<i class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
|
|
<span class="sr">Loading…</span>
|
|
</p>
|
|
</div>
|