MDL-50033 lang: Update Behat scenarios to use the new strings

This commit is contained in:
David Mudrák 2015-04-29 23:15:44 +02:00
parent 0634dc3b76
commit 3759e7ae96
3 changed files with 8 additions and 8 deletions

View file

@ -20,14 +20,14 @@ Feature: The activity results block displays student scores
Scenario: Add the block to a the course Scenario: Add the block to a the course
Given I add the "Activity results" block Given I add the "Activity results" block
Then I should see "There is an error right now with this block: you need to select which activity it should display results from." in the "Activity results" "block" Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"
Scenario: Try to configure the block on the course page in a course without activities Scenario: Try to configure the block on the course page in a course without activities
Given I add the "Activity results" block Given I add the "Activity results" block
When I configure the "Activity results" block When I configure the "Activity results" block
And I should see "This course does not contain any activity activities . You must add at least one before you are able to use this block correctly." And I should see "There are not yet any activities in this course."
And I press "Save changes" And I press "Save changes"
Then I should see "There is an error right now with this block: you need to select which activity it should display results from." in the "Activity results" "block" Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"
Scenario: Try to configure the block on a resource page in a course without activities Scenario: Try to configure the block on a resource page in a course without activities
Given I add a "Page" to section "1" Given I add a "Page" to section "1"
@ -38,6 +38,6 @@ Feature: The activity results block displays student scores
And I press "Save and display" And I press "Save and display"
When I add the "Activity results" block When I add the "Activity results" block
And I configure the "Activity results" block And I configure the "Activity results" block
And I should see "This course does not contain any activity activities . You must add at least one before you are able to use this block correctly." And I should see "There are not yet any activities in this course."
And I press "Save changes" And I press "Save changes"
Then I should see "There is an error right now with this block: you need to select which activity it should display results from." in the "Activity results" "block" Then I should see "Please configure this block and select which activity it should display results from." in the "Activity results" "block"

View file

@ -37,4 +37,4 @@ Feature: The activity results block displays student scores
And I set the following fields to these values: And I set the following fields to these values:
| id_modgrade_type | None | | id_modgrade_type | None |
And I press "Save and return to course" And I press "Save and return to course"
Then I should see "There is an error right now with this block: The activity selected is configured to use a grading method that is not supported by this block." in the "Activity results" "block" Then I should see "Error: the activity selected uses a grading method that is not supported by this block." in the "Activity results" "block"

View file

@ -21,7 +21,7 @@ Feature: Deleting users
And I press "Add to selection" And I press "Add to selection"
And I set the field "id_action" to "Delete" And I set the field "id_action" to "Delete"
And I press "Go" And I press "Go"
And I should see "Are you absolutely sure you want to completely delete User Four ?" And I should see "Are you absolutely sure you want to completely delete the user User Four, including their enrolments, activity and other user data?"
And I press "Yes" And I press "Yes"
And I should see "Changes saved" And I should see "Changes saved"
And I press "Continue" And I press "Continue"
@ -38,7 +38,7 @@ Feature: Deleting users
And I press "Add to selection" And I press "Add to selection"
And I set the field "id_action" to "Delete" And I set the field "id_action" to "Delete"
And I press "Go" And I press "Go"
And I should see "Are you absolutely sure you want to completely delete User Four, User Three ?" And I should see "Are you absolutely sure you want to completely delete the user User Four, User Three, including their enrolments, activity and other user data?"
And I press "Yes" And I press "Yes"
And I should see "Changes saved" And I should see "Changes saved"
And I press "Continue" And I press "Continue"