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
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
Given I add 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"
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
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"
When I add 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"
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:
| id_modgrade_type | None |
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"