Merge branch 'MDL-73452-master' of git://github.com/mickhawkins/moodle

This commit is contained in:
Jun Pataleta 2022-02-03 11:44:31 +08:00
commit 5914c8ced2
3 changed files with 9 additions and 8 deletions

View File

@ -396,6 +396,7 @@ $string['courserequestsuccess'] = 'Your course request has been saved successful
$string['courserequestsupport'] = 'Supporting information to help the administrator evaluate this request';
$string['courserequestwarning'] = 'The user requesting this course will be automatically enrolled and assigned the role of {$a}.';
$string['courserestore'] = 'Course restore';
$string['coursereuse'] = 'Course reuse';
$string['courses'] = 'Courses';
$string['coursesectionsummaries'] = 'Course section summaries';
$string['coursesectiontitle'] = 'Course: {$a->course}, {$a->sectionname}: {$a->sectiontitle}';

View File

@ -356,8 +356,8 @@ class secondary extends view {
return;
}
$actionnode = $this->get_first_action_for_node($overflownode);
// All additional nodes will be available under the 'Course admin' page.
$text = get_string('courseadministration');
// All additional nodes will be available under the 'Course reuse' page.
$text = get_string('coursereuse');
$this->add($text, $actionnode->action, null, null, 'courseadmin', new \pix_icon('t/edit', $text));
}
}

View File

@ -1,7 +1,7 @@
@javascript @theme_boost
Feature: Course administration navigation
Feature: Course reuse navigation
As a teacher
I can navigate to course administration pages
I can navigate to course reuse pages
Background:
Given the following "courses" exist:
@ -17,13 +17,13 @@ Feature: Course administration navigation
Scenario: A Teacher can navigate to the course Import page.
Given I log in as "teacher1"
When I am on "Course 1" course homepage
And I navigate to "Course administration" in current page administration
And I navigate to "Course reuse" in current page administration
Then I should see "Find a course to import data from:"
Scenario Outline: A Teacher can navigate to other course administration pages.
Scenario Outline: A Teacher can navigate to other Course reuse pages.
Given I log in as "teacher1"
When I am on "Course 1" course homepage
And I navigate to "Course administration" in current page administration
And I navigate to "Course reuse" in current page administration
And I select "<adminpage>" from the "jump" singleselect
Then I should see "<title>"
@ -37,6 +37,6 @@ Feature: Course administration navigation
Scenario: An Administrator can view the course copy page.
Given I log in as "admin"
When I am on "Course 1" course homepage
And I navigate to "Course administration" in current page administration
And I navigate to "Course reuse" in current page administration
And I select "Copy course" from the "jump" singleselect
Then I should see "This course will be duplicated and put into the selected course category"