MDL-21724 course: change remaining tests to new "Save and display"

This commit is contained in:
Eloy Lafuente (stronk7) 2014-12-03 21:17:22 +01:00 committed by Dan Poltawski
parent ef5b65dae4
commit 38ea5e0a39
11 changed files with 15 additions and 15 deletions

View file

@ -118,7 +118,7 @@ class behat_completion extends behat_base {
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').'"')
);
}
}

View file

@ -28,7 +28,7 @@ Feature: Allow students to manually mark an activity as complete
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 |

View file

@ -30,7 +30,7 @@ Feature: Restrict sections availability through completion or grade conditions
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 |