| id_startdate_month | January |
| id_startdate_year | 2020 |
| id_format | Weekly format |
- And I press "Save changes"
+ And I press "Save and display"
And I should see "1 January - 7 January"
And I should see "Test forum name"
And I click on "Edit settings" "link" in the "Administration" "block"
And the field "id_format" matches value "Weekly format"
And I set the following fields to these values:
| id_format | Social format |
- And I press "Save changes"
+ And I press "Save and display"
And I should see "An open forum for chatting about anything you want to"
And I click on "Edit settings" "link" in the "Administration" "block"
And I expand all fieldsets
And I follow "Edit settings"
And I set the following fields to these values:
| Enable completion tracking | Yes |
- And I press "Save changes"
+ And I press "Save and display"
And I turn editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
And I follow "Edit settings"
And I set the following fields to these values:
| Enable completion tracking | Yes |
- And I press "Save changes"
+ And I press "Save and display"
And I turn editing mode on
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
And I follow "Edit settings"
And I set the following fields to these values:
| News items to show | 2 |
- And I press "Save changes"
+ And I press "Save and display"
And I should not see "Discussion One" in the "Latest news" "block"
And I should see "Discussion Two" in the "Latest news" "block"
And I should see "Discussion Three" in the "Latest news" "block"
And I follow "Edit settings"
And I set the following fields to these values:
| News items to show | 0 |
- And I press "Save changes"
+ And I press "Save and display"
And "Latest news" "block" should not exist
return array(
new Given('I follow "'.get_string('editsettings').'"'),
new Given('I set the field "'.get_string('enablecompletion', 'completion').'" to "'.$toggle.'"'),
- new Given('I press "'.get_string('savechanges').'"')
+ new Given('I press "'.get_string('savechangesanddisplay').'"')
);
}
}
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the following fields to these values:
| Enable completion tracking | Yes |
- And I press "Save changes"
+ And I press "Save and display"
When I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum name |
| Description | Test forum description |
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the following fields to these values:
| Enable completion tracking | Yes |
- And I press "Save changes"
+ And I press "Save and display"
And I add a "Label" to section "1" and I fill the form with:
| Label text | Test label |
| Completion tracking | Students can manually mark the activity as completed |
Scenario: Allow guest access without password
Given I set the following fields to these values:
| Allow guest access | Yes |
- And I press "Save changes"
+ And I press "Save and display"
And I log out
And I log in as "student1"
And I follow "Course 1"
Given I set the following fields to these values:
| Allow guest access | Yes |
| Password | moodle_rules |
- And I press "Save changes"
+ And I press "Save and display"
And I log out
And I log in as "student1"
When I follow "Course 1"
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the following fields to these values:
| Group mode | Separate groups |
- And I press "Save changes"
+ And I press "Save and display"
And I expand "Users" node
And I follow "Groups"
And I add "Student 0 (student0@asd.com)" user to "Group 1" group members
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the following fields to these values:
| Enable completion tracking | Yes |
- And I press "Save changes"
+ And I press "Save and display"
When I add a "Forum" to section "1" and I fill the form with:
| Forum name | Test forum name |
| Description | Test forum description |
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the following fields to these values:
| Enable completion tracking | Yes |
- And I press "Save changes"
+ And I press "Save and display"
And I add a "Quiz" to section "1" and I fill the form with:
| Name | Test quiz name |
| Description | Test quiz description |
And I click on "Edit settings" "link" in the "Administration" "block"
And I set the following fields to these values:
| Enable completion tracking | Yes |
- And I press "Save changes"
+ And I press "Save and display"
And I add a "Quiz" to section "1" and I fill the form with:
| Name | Test quiz name |
| Description | Test quiz description |