forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
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-73648' of https://github.com/paulholden/moodle
- Loading branch information
Showing
9 changed files
with
369 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@core @core_badges @_file_upload | ||
@core @core_badges | ||
Feature: Backpack badges | ||
Test the settings to add/update a backpack for a site and user. | ||
I need to verify display backpack in the my profile | ||
|
@@ -37,36 +37,21 @@ Feature: Backpack badges | |
|
||
@javascript | ||
Scenario: Verify backback settings | ||
Given I am on homepage | ||
And I log in as "admin" | ||
And I navigate to "Badges > Badges settings" in site administration | ||
And I set the following fields to these values: | ||
| External backpack connection | 1 | | ||
And I press "Save changes" | ||
And I navigate to "Badges > Manage backpacks" in site administration | ||
And I click on "Move up" "link" in the "https://dc.imsglobal.org" "table_row" | ||
And I navigate to "Badges > Add a new badge" in site administration | ||
And I set the following fields to these values: | ||
| Name | Test badge verify backpack | | ||
| Version | v1 | | ||
| Language | English | | ||
| Description | Test badge description | | ||
| Image author | http://author.example.com | | ||
| Image caption | Test caption image | | ||
And I upload "badges/tests/behat/badge.png" file to "Image" filemanager | ||
And I press "Create badge" | ||
And I set the field "type" to "Manual issue by role" | ||
And I set the field "Manager" to "1" | ||
And I press "Save" | ||
And I press "Enable access" | ||
And I press "Continue" | ||
And I select "Recipients (0)" from the "jump" singleselect | ||
And I press "Award badge" | ||
And I set the field "potentialrecipients[]" to "Student 1 ([email protected])" | ||
And I press "Award badge" | ||
And I log out | ||
When I am on homepage | ||
And I log in as "student1" | ||
Given the following "core_badges > Badge" exists: | ||
| name | Test badge verify backpack | | ||
| version | 1 | | ||
| language | en | | ||
| description | Test badge description | | ||
| image | badges/tests/behat/badge.png | | ||
| imageauthorurl | http://author.example.com | | ||
| imagecaption | Test caption image | | ||
And the following "core_badges > Criteria" exists: | ||
| badge | Test badge verify backpack | | ||
| role | editingteacher | | ||
And the following "core_badges > Issued badge" exists: | ||
| badge | Test badge verify backpack | | ||
| user | student1 | | ||
When I log in as "student1" | ||
And I follow "Preferences" in the user menu | ||
And I follow "Backpack settings" | ||
Then I should see "https://dc.imsglobal.org" | ||
|
@@ -82,26 +67,20 @@ Feature: Backpack badges | |
And I press "Save changes" | ||
And I navigate to "Badges > Manage backpacks" in site administration | ||
And I click on "Move up" "link" in the "https://dc.imsglobal.org" "table_row" | ||
And I navigate to "Badges > Add a new badge" in site administration | ||
And I set the following fields to these values: | ||
| Name | Test badge verify backpack | | ||
| Version | v1 | | ||
| Language | English | | ||
| Description | Test badge description | | ||
| Image author | http://author.example.com | | ||
| Image caption | Test caption image | | ||
And I upload "badges/tests/behat/badge.png" file to "Image" filemanager | ||
And I press "Create badge" | ||
And I set the field "type" to "Manual issue by role" | ||
And I set the field "Manager" to "1" | ||
And I press "Save" | ||
And I press "Enable access" | ||
And I press "Continue" | ||
And I select "Recipients (0)" from the "jump" singleselect | ||
And I press "Award badge" | ||
And I set the field "potentialrecipients[]" to "Student 1 ([email protected])" | ||
And I press "Award badge" | ||
And I log out | ||
And the following "core_badges > Badge" exists: | ||
| name | Test badge verify backpack | | ||
| version | 1 | | ||
| language | en | | ||
| description | Test badge description | | ||
| image | badges/tests/behat/badge.png | | ||
| imageauthorurl | http://author.example.com | | ||
| imagecaption | Test caption image | | ||
And the following "core_badges > Criteria" exists: | ||
| badge | Test badge verify backpack | | ||
| role | editingteacher | | ||
And the following "core_badges > Issued badge" exists: | ||
| badge | Test badge verify backpack | | ||
| user | student1 | | ||
And the following "setup backpack connected" exist: | ||
| user | externalbackpack | | ||
| student1 | https://dc.imsglobal.org | | ||
|
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
Oops, something went wrong.