diff --git a/mod/quiz/index.php b/mod/quiz/index.php
index 640bddaf3a9..480d46a6c62 100644
--- a/mod/quiz/index.php
+++ b/mod/quiz/index.php
@@ -23,6 +23,7 @@
  */
 
 use mod_quiz\output\grades\grade_out_of;
+use mod_quiz\output\renderer;
 
 require_once("../../config.php");
 require_once("locallib.php");
@@ -46,8 +47,10 @@ $strquizzes = get_string("modulenameplural", "quiz");
 $PAGE->navbar->add($strquizzes);
 $PAGE->set_title($strquizzes);
 $PAGE->set_heading($course->fullname);
-echo $OUTPUT->header();
-echo $OUTPUT->heading($strquizzes, 2);
+/** @var renderer $output */
+$output = $PAGE->get_renderer('mod_quiz');
+echo $output->header();
+echo $output->heading($strquizzes, 2);
 
 // Get all the appropriate data.
 if (!$quizzes = get_all_instances_in_course("quiz", $course)) {
@@ -162,8 +165,8 @@ foreach ($quizzes as $quiz) {
         $feedback = '';
         if ($quiz->grade && array_key_exists($quiz->id, $grades)) {
             if ($alloptions->marks >= question_display_options::MARK_AND_MAX) {
-                $grade = $OUTPUT->render(new grade_out_of(
-                        $grades[$quiz->id], $quiz->grade, $quiz->sumgrades, style: grade_out_of::SHORT));
+                $grade = $output->render(new grade_out_of(
+                        $quiz, $grades[$quiz->id], $quiz->grade, $quiz->sumgrades, style: grade_out_of::SHORT));
             }
             if ($alloptions->overallfeedback) {
                 $feedback = quiz_feedback_for_grade($grades[$quiz->id], $quiz, $context);
@@ -182,4 +185,4 @@ foreach ($quizzes as $quiz) {
 echo html_writer::table($table);
 
 // Finish the page.
-echo $OUTPUT->footer();
+echo $output->footer();
diff --git a/mod/quiz/tests/behat/attempt_review_options.feature b/mod/quiz/tests/behat/attempt_review_options.feature
index 2b8c0dce980..24a65fa5414 100644
--- a/mod/quiz/tests/behat/attempt_review_options.feature
+++ b/mod/quiz/tests/behat/attempt_review_options.feature
@@ -62,3 +62,8 @@ Feature: Allow settings to show Max marks and Marks, Max marks only, or hide the
     And I should see "Question 1" in the ".info" "css_element"
     And I should see "Correct" in the ".info" "css_element"
     And I should see "Mark 2.00 out of 2.00" in the ".info" "css_element"
+
+    # Check the page that lists all the quizzes in a course.
+    And I am on the "C1" "quiz index" page
+    And I should see "Quiz 1"
+    And I should see "Quiz 2"