From 0c1d4b219ab8e4112ee5c41cf1b611516233360e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Thu, 30 Jun 2022 20:32:01 +0200 Subject: [PATCH] MDL-75008 lang: Use the fixed strings in Behat scenario files --- .../tests/behat/bulk_edit_activity_completion.feature | 8 ++++---- .../tests/behat/default_activity_completion.feature | 4 ++-- course/tests/behat/activities_edit_completion.feature | 2 +- .../tests/behat/quiz_activity_completion_unlocked.feature | 2 +- mod/wiki/tests/behat/wiki_activity_completion.feature | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/completion/tests/behat/bulk_edit_activity_completion.feature b/completion/tests/behat/bulk_edit_activity_completion.feature index acf560ef82c..fadf12e8e71 100644 --- a/completion/tests/behat/bulk_edit_activity_completion.feature +++ b/completion/tests/behat/bulk_edit_activity_completion.feature @@ -43,7 +43,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" @@ -53,12 +53,12 @@ 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" # Same conditions as above, @@ -74,7 +74,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 "completionusegrade" "checkbox" And I click on "completionpassgrade" "checkbox" diff --git a/completion/tests/behat/default_activity_completion.feature b/completion/tests/behat/default_activity_completion.feature index 95fecc79a55..e74420d301c 100644 --- a/completion/tests/behat/default_activity_completion.feature +++ b/completion/tests/behat/default_activity_completion.feature @@ -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 | @@ -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" diff --git a/course/tests/behat/activities_edit_completion.feature b/course/tests/behat/activities_edit_completion.feature index 993c68df477..3ad94999f31 100644 --- a/course/tests/behat/activities_edit_completion.feature +++ b/course/tests/behat/activities_edit_completion.feature @@ -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" And I expand all fieldsets Then I should see "Completion options unlocked" And I set the field "Completion tracking" to "Students can manually mark the activity as completed" diff --git a/mod/quiz/tests/behat/quiz_activity_completion_unlocked.feature b/mod/quiz/tests/behat/quiz_activity_completion_unlocked.feature index 7a421563115..0977e63965f 100644 --- a/mod/quiz/tests/behat/quiz_activity_completion_unlocked.feature +++ b/mod/quiz/tests/behat/quiz_activity_completion_unlocked.feature @@ -59,7 +59,7 @@ Feature: Activity completion in the quiz activity with unlocked and re-grading. When I am on the "Test quiz name" "quiz activity" page logged in as teacher1 And I navigate to "Settings" in current page administration And I expand all fieldsets - And I press "Unlock completion options" + And I press "Unlock completion settings" And I set the following fields to these values: | gradepass | 8 | And I press "Save and return to course" diff --git a/mod/wiki/tests/behat/wiki_activity_completion.feature b/mod/wiki/tests/behat/wiki_activity_completion.feature index 07f6fcc2142..334df81ab85 100644 --- a/mod/wiki/tests/behat/wiki_activity_completion.feature +++ b/mod/wiki/tests/behat/wiki_activity_completion.feature @@ -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 expand all fieldsets And I set the field "Completion tracking" to "Students can manually mark the activity as completed" And I press "Save and display"