mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-75008 lang: Use the fixed strings in Behat scenario files
This commit is contained in:
parent
e73756abdd
commit
0c1d4b219a
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user