Skip to content

Commit

Permalink
MDL-75008 lang: Use the fixed strings in Behat scenario files
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Jun 30, 2022
1 parent 985be80 commit 03c7f3d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions completion/tests/behat/bulk_edit_activity_completion.feature
Expand Up @@ -39,7 +39,7 @@ Feature: Allow teachers to bulk edit activity completion rules in a course.
And I click on "Edit" "button"
And I should see "Completion tracking"
And I should see "The changes will affect the following 2 activities or resources:"
And I should see "Student must submit to this activity to complete it"
And I should see "Student must make a submission"
And I select "Show activity as complete when conditions are met" from the "completion" singleselect
And I click on "completionview" "checkbox"
And I click on "completionusegrade" "checkbox"
Expand All @@ -49,10 +49,10 @@ Feature: Allow teachers to bulk edit activity completion rules in a course.
And I should see "With conditions" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment one']]" "xpath_element"
And I should see "Student must view this activity to complete it" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment one']]" "xpath_element"
And I should see "Student must receive a grade to complete this activity" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment one']]" "xpath_element"
And I should see "Student must submit to this activity to complete it" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment one']]" "xpath_element"
And I should see "Student must make a submission" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment one']]" "xpath_element"
And I should not see "Completion expected on" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment one']]" "xpath_element"
And I should see "With conditions" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment two']]" "xpath_element"
And I should see "Student must view this activity to complete it" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment two']]" "xpath_element"
And I should see "Student must receive a grade to complete this activity" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment two']]" "xpath_element"
And I should see "Student must submit to this activity to complete it" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment two']]" "xpath_element"
And I should see "Student must make a submission" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment two']]" "xpath_element"
And I should not see "Completion expected on" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Test assignment two']]" "xpath_element"
4 changes: 2 additions & 2 deletions completion/tests/behat/default_activity_completion.feature
Expand Up @@ -35,7 +35,7 @@ Feature: Allow teachers to edit the default activity completion rules in a cours
And I click on "Edit" "button"
And I should see "Completion tracking"
And I should see "The changes will affect the following 1 activities or resources:"
And I should see "Student must submit to this activity to complete it"
And I should see "Student must make a submission"
And I set the following fields to these values:
| completion | Show activity as complete when conditions are met|
| completionview | 1 |
Expand All @@ -46,5 +46,5 @@ Feature: Allow teachers to edit the default activity completion rules in a cours
And I should see "With conditions" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Assignments']]" "xpath_element"
And I should see "Student must view this activity to complete it" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Assignments']]" "xpath_element"
And I should see "Student must receive a grade to complete this activity" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Assignments']]" "xpath_element"
And I should see "Student must submit to this activity to complete it" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Assignments']]" "xpath_element"
And I should see "Student must make a submission" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Assignments']]" "xpath_element"
And I should not see "Completion expected on" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' row ')][.//*[text() = 'Assignments']]" "xpath_element"
2 changes: 1 addition & 1 deletion course/tests/behat/activities_edit_completion.feature
Expand Up @@ -29,7 +29,7 @@ Feature: Edit completion settings of an activity
Given I am on the TestPage "Page Activity" page logged in as admin
When I am on the TestPage "Page Activity editing" page
And I expand all fieldsets
And I press "Unlock completion options"
And I press "Unlock completion settings"
Then I should see "Completion options unlocked"
And I set the field "Completion tracking" to "Students can manually mark the activity as completed"
And I press "Save and display"
Expand Down
2 changes: 1 addition & 1 deletion mod/wiki/tests/behat/wiki_activity_completion.feature
Expand Up @@ -51,7 +51,7 @@ Feature: View activity completion information in the Wiki activity
Given I am on the "Music history" "wiki activity" page logged in as teacher1
And I am on the "Music history" "wiki activity editing" page
And I expand all fieldsets
And I press "Unlock completion options"
And I press "Unlock completion settings"
And I set the field "Completion tracking" to "Students can manually mark the activity as completed"
And I press "Save and display"
# Teacher view.
Expand Down

0 comments on commit 03c7f3d

Please sign in to comment.