mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-78633 core_course: Improve tertiary navigation in course completion
This commit is contained in:
parent
ef93325f27
commit
b14669a34a
11 changed files with 41 additions and 35 deletions
|
@ -314,7 +314,7 @@ class manager {
|
|||
|
||||
if (has_capability('moodle/course:update', $coursecontext)) {
|
||||
$completionlink = new moodle_url('/course/completion.php', ['id' => $courseid]);
|
||||
$options[$completionlink->out(false)] = get_string('coursecompletion', 'completion');
|
||||
$options[$completionlink->out(false)] = get_string('coursecompletionsettings', 'completion');
|
||||
}
|
||||
|
||||
if (has_capability('moodle/course:manageactivities', $coursecontext)) {
|
||||
|
|
|
@ -78,6 +78,7 @@ Feature: Allow to mark course as completed without cron for activity completion
|
|||
And I set the field "completionusegrade" to "1"
|
||||
And I press "Save and return to course"
|
||||
And I navigate to "Course completion" in current page administration
|
||||
And I should see "Course completion settings" in the "tertiary-navigation" "region"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Assignment - Test assignment name" to "1"
|
||||
And I set the field "Assignment - Test assignment name2" to "1"
|
||||
|
|
|
@ -37,7 +37,7 @@ Feature: Allow teachers to bulk edit activity completion rules in a course.
|
|||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I navigate to "Course completion" in current page administration
|
||||
And I select "Bulk edit activity completion" from the "Course completion tertiary navigation" singleselect
|
||||
And I set the field "Course completion tertiary navigation" to "Bulk edit activity completion"
|
||||
And I click on "Test assignment one" "checkbox"
|
||||
And I click on "Test assignment two" "checkbox"
|
||||
And I click on "Edit" "button"
|
||||
|
@ -68,7 +68,7 @@ Feature: Allow teachers to bulk edit activity completion rules in a course.
|
|||
Given I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I navigate to "Course completion" in current page administration
|
||||
And I select "Bulk edit activity completion" from the "Course completion tertiary navigation" singleselect
|
||||
And I set the field "Course completion tertiary navigation" to "Bulk edit activity completion"
|
||||
And I click on "Test assignment one" "checkbox"
|
||||
And I click on "Test assignment two" "checkbox"
|
||||
And I click on "Edit" "button"
|
||||
|
|
|
@ -30,7 +30,7 @@ Feature: Allow teachers to edit the default activity completion rules in a cours
|
|||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
When I navigate to "Course completion" in current page administration
|
||||
And I select "Default activity completion" from the "Course completion tertiary navigation" singleselect
|
||||
And I set the field "Course completion tertiary navigation" to "Default activity completion"
|
||||
And I click on "Assignments" "checkbox"
|
||||
And I click on "Edit" "button"
|
||||
And I should see "Completion tracking"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue