Merge branch 'MDL-86202-500' of https://github.com/rjnl/moodle into MOODLE_500_STABLE
This commit is contained in:
@@ -4,6 +4,7 @@ Feature: In a lesson activity, students can review the answers they gave to ques
|
||||
As a student
|
||||
I need to complete a lesson answering all of the questions.
|
||||
|
||||
@javascript @accessibility
|
||||
Scenario: Student answers questions and then reviews them.
|
||||
Given the following "users" exist:
|
||||
| username | firstname | lastname | email |
|
||||
@@ -89,3 +90,7 @@ Feature: In a lesson activity, students can review the answers they gave to ques
|
||||
And I should see "Correct answer 2"
|
||||
And I press "Continue"
|
||||
And I should see "Congratulations - end of lesson reached"
|
||||
# Check assessibility at the lesson start page.
|
||||
# Attempts heading should be at correct heading level.
|
||||
And I am on the "Test lesson name" "lesson activity" page
|
||||
And the "[role=main]" "css_element" should meet accessibility standards with "best-practice" extra tests
|
||||
|
||||
+3
-2
@@ -242,8 +242,9 @@ if ($pageid != LESSON_EOL) {
|
||||
echo $lessonoutput->render($editbuttons);
|
||||
|
||||
if ($attemptflag) {
|
||||
// We are using level 3 header because attempt heading is a sub-heading of lesson title (MDL-30911).
|
||||
echo $OUTPUT->heading(get_string('attempt', 'lesson', $retries), 3);
|
||||
// Get correct heading level for the attempts heading.
|
||||
$headinglevel = $PAGE->activityheader->get_heading_level();
|
||||
echo $OUTPUT->heading(get_string('attempt', 'lesson', $retries), $headinglevel);
|
||||
}
|
||||
// This calculates and prints the ongoing score.
|
||||
if ($lesson->ongoing && !empty($pageid) && !$reviewmode) {
|
||||
|
||||
Reference in New Issue
Block a user