forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-82455-404' of https://github.com/paulholden/moodle …
…into MOODLE_404_STABLE
- Loading branch information
Showing
2 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,10 @@ Feature: Manage badges | |
| Badge #1 | Not available | | ||
|
||
Scenario: Award a badge | ||
Given I log in as "admin" | ||
Given the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| user1 | User | One | user1@example.com | | ||
When I log in as "admin" | ||
And I navigate to "Badges > Manage badges" in site administration | ||
And I press "Edit" action in the "Badge #1" report row | ||
And I select "Criteria" from the "jump" singleselect | ||
|
@@ -101,9 +104,14 @@ Feature: Manage badges | |
And I press "Enable access" action in the "Badge #1" report row | ||
And I press "Continue" | ||
And I press "Award badge" action in the "Badge #1" report row | ||
And I set the field "potentialrecipients[]" to "Admin User ([email protected])" | ||
And I set the field "potentialrecipients[]" to "Admin User ([email protected]),User One ([email protected])" | ||
And I press "Award badge" | ||
And I navigate to "Badges > Manage badges" in site administration | ||
Then the following should exist in the "reportbuilder-table" table: | ||
Then the following should exist in the "Badges" table: | ||
| Name | Badge status | Recipients | | ||
| Badge #1 | Available | 1 | | ||
| Badge #1 | Available | 2 | | ||
And I click on "2" "link" in the "Badge #1" "table_row" | ||
And the following should exist in the "Recipients" table: | ||
| -1- | | ||
| Admin User | | ||
| User One | |