Skip to content

Commit

Permalink
MDL-21724 course: change remaining tests to new "Save and display"
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 authored and danpoltawski committed Dec 4, 2014
1 parent ef5b65d commit 38ea5e0
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions backup/util/ui/tests/behat/restore_moodle2_courses.feature
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ Feature: Restore Moodle 2 course backups
| 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 I expand all fieldsets
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
Expand Down
4 changes: 2 additions & 2 deletions badges/tests/behat/award_badge.feature
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Feature: Award badges
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 |
Expand Down Expand Up @@ -185,7 +185,7 @@ Feature: Award badges
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 |
Expand Down
4 changes: 2 additions & 2 deletions blocks/news_items/tests/behat/display_news.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ Feature: Latest news block displays the course latest news
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
2 changes: 1 addition & 1 deletion completion/tests/behat/behat_completion.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function completion_is_toggled_in_course($completionstatus) {
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').'"')
);
}
}
2 changes: 1 addition & 1 deletion completion/tests/behat/enable_manual_complete_mark.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
4 changes: 2 additions & 2 deletions enrol/guest/tests/behat/guest_access.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
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"
Expand All @@ -39,7 +39,7 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
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"
Expand Down
2 changes: 1 addition & 1 deletion mod/assign/tests/behat/group_submission.feature
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Feature: Group assignment submissions
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Feature: Set a certain number of discussions as a completion condition for a for
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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feature: Set a quiz to be marked complete when the student uses all attempts all
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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feature: Set a quiz to be marked complete when the student passes
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 |
Expand Down

0 comments on commit 38ea5e0

Please sign in to comment.