mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 08:30:04 +01:00
Merge branch 'MDL-54940-master' of https://github.com/LukeCarrier/moodle
This commit is contained in:
commit
0871afcd5f
@ -41,15 +41,13 @@ Feature: Sections can be edited and deleted in topics format
|
||||
Then I should see "Use default section name [Topic 2]"
|
||||
|
||||
Scenario: Edit section summary in topics format
|
||||
When I edit the section "2"
|
||||
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 topics format
|
||||
When I edit the section "2"
|
||||
And I set the following fields to these values:
|
||||
When I edit the section "2" and I fill the form with:
|
||||
| Use default section name | 0 |
|
||||
| name | This is the second topic |
|
||||
And I press "Save changes"
|
||||
|
@ -401,7 +401,7 @@ class behat_course extends behat_base {
|
||||
public function i_edit_the_section_and_i_fill_the_form_with($sectionnumber, TableNode $data) {
|
||||
|
||||
// Edit given section.
|
||||
$this->execute("behat_course::i_edit_the_section");
|
||||
$this->execute("behat_course::i_edit_the_section", $sectionnumber);
|
||||
|
||||
// Set form fields.
|
||||
$this->execute("behat_forms::i_set_the_following_fields_to_these_values", $data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user