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"
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"
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"
And I press "Add to selection"
And I set the field "id_action" to "Delete"
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 should see "Changes saved"
And I press "Continue"
And I press "Add to selection"
And I set the field "id_action" to "Delete"
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 should see "Changes saved"
And I press "Continue"