mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-58435' of https://github.com/NeillM/moodle
This commit is contained in:
commit
ddea987812
@ -24,20 +24,18 @@ Feature: Sections can be edited and deleted in topics format
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
Scenario: View the default name of the general section in topics format
|
||||
When I click on "Edit section" "link" in the "li#section-0" "css_element"
|
||||
When I edit the section "0"
|
||||
Then the field "Custom" matches value "0"
|
||||
And the field "New value for Section name" matches value "General"
|
||||
|
||||
Scenario: Edit the default name of the general section in topics format
|
||||
When I click on "Edit section" "link" in the "li#section-0" "css_element"
|
||||
And I set the following fields to these values:
|
||||
When I edit the section "0" and I fill the form with:
|
||||
| Custom | 1 |
|
||||
| New value for Section name | This is the general section |
|
||||
And I press "Save changes"
|
||||
Then I should see "This is the general section" in the "li#section-0" "css_element"
|
||||
|
||||
Scenario: View the default name of the second section in topics format
|
||||
When I click on "Edit topic" "link" in the "li#section-2" "css_element"
|
||||
When I edit the section "2"
|
||||
Then the field "Custom" matches value "0"
|
||||
And the field "New value for Section name" matches value "Topic 2"
|
||||
|
||||
|
@ -24,37 +24,31 @@ Feature: Sections can be edited and deleted in weeks format
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
Scenario: View the default name of the general section in weeks format
|
||||
When I click on "Edit section" "link" in the "li#section-0" "css_element"
|
||||
When I edit the section "0"
|
||||
Then the field "Custom" matches value "0"
|
||||
And the field "New value for Section name" matches value "General"
|
||||
|
||||
Scenario: Edit the default name of the general section in weeks format
|
||||
When I click on "Edit section" "link" in the "li#section-0" "css_element"
|
||||
And I set the following fields to these values:
|
||||
When I edit the section "0" and I fill the form with:
|
||||
| Custom | 1 |
|
||||
| New value for Section name | This is the general section |
|
||||
And I press "Save changes"
|
||||
Then I should see "This is the general section" in the "li#section-0" "css_element"
|
||||
|
||||
Scenario: View the default name of the second section in weeks format
|
||||
When I click on "Edit week" "link" in the "li#section-2" "css_element"
|
||||
When I edit the section "2"
|
||||
Then the field "Custom" matches value "0"
|
||||
And the field "New value for Section name" matches value "8 May - 14 May"
|
||||
|
||||
Scenario: Edit section summary in weeks format
|
||||
When I click on "Edit week" "link" in the "li#section-2" "css_element"
|
||||
And I set the following fields to these values:
|
||||
When I edit the section "2" and I fill the form with:
|
||||
| Summary | Welcome to section 2 |
|
||||
And I press "Save changes"
|
||||
Then I should see "Welcome to section 2" in the "li#section-2" "css_element"
|
||||
|
||||
Scenario: Edit section default name in weeks format
|
||||
Given I should see "8 May - 14 May" in the "li#section-2" "css_element"
|
||||
When I click on "Edit week" "link" in the "li#section-2" "css_element"
|
||||
And I set the following fields to these values:
|
||||
When I edit the section "2" and I fill the form with:
|
||||
| Custom | 1 |
|
||||
| New value for Section name | This is the second week |
|
||||
And I press "Save changes"
|
||||
Then I should see "This is the second week" in the "li#section-2" "css_element"
|
||||
And I should not see "8 May - 14 May" in the "li#section-2" "css_element"
|
||||
|
||||
|
@ -399,7 +399,7 @@ class behat_course extends behat_base {
|
||||
|
||||
// We need to know the course format as the text strings depends on them.
|
||||
$courseformat = $this->get_course_format();
|
||||
if (get_string_manager()->string_exists('editsection', $courseformat)) {
|
||||
if ($sectionnumber > 0 && get_string_manager()->string_exists('editsection', $courseformat)) {
|
||||
$stredit = get_string('editsection', $courseformat);
|
||||
} else {
|
||||
$stredit = get_string('editsection');
|
||||
|
Loading…
x
Reference in New Issue
Block a user