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-70911-master' of git://github.com/sarjona/moodle
- Loading branch information
Showing
14 changed files
with
271 additions
and
61 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
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
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
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ Feature: Backpack badges | |
|
||
Background: | ||
Given the following "badge external backpacks" exist: | ||
| backpackapiurl | backpackweburl | apiversion | | ||
| https://dc.imsglobal.org/obchost/ims/ob/v2p1 | https://dc.imsglobal.org | 2.1 | | ||
| https://test.com/ | https://test.com/ | 2 | | ||
| backpackapiurl | backpackweburl | apiversion | sortorder | | ||
| https://dc.imsglobal.org/obchost/ims/ob/v2p1 | https://dc.imsglobal.org | 2.1 | 2 | | ||
| https://test.com/ | https://test.com/ | 2 | 3 | | ||
And the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| student1 | Student | 1 | student1@example.com | | ||
|
@@ -17,15 +17,34 @@ Feature: Backpack badges | |
And I set the field "Badge issuer email address" to "[email protected]" | ||
And I log out | ||
|
||
@javascript | ||
Scenario: If external backpack connection is disabled, backpack settings should not be displayed | ||
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 | 0 | | ||
And I press "Save changes" | ||
When I navigate to "Badges" in site administration | ||
Then I should not see "Manage backpacks" | ||
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 am on homepage | ||
And I navigate to "Badges" in site administration | ||
And I should see "Manage backpacks" | ||
|
||
@javascript | ||
Scenario: Verify backback settings | ||
Given I am on homepage | ||
And I log in as "admin" | ||
And I navigate to "Badges > Backpack settings" in site administration | ||
And I navigate to "Badges > Badges settings" in site administration | ||
And I set the following fields to these values: | ||
| External backpack connection | 1 | | ||
| Active external backpack | https://dc.imsglobal.org | | ||
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 | | ||
|
@@ -57,11 +76,12 @@ Feature: Backpack badges | |
Scenario: User has been connected backpack | ||
Given I am on homepage | ||
And I log in as "admin" | ||
And I navigate to "Badges > Backpack settings" in site administration | ||
And I navigate to "Badges > Badges settings" in site administration | ||
And I set the following fields to these values: | ||
| External backpack connection | 1 | | ||
| Active external backpack | https://dc.imsglobal.org | | ||
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 | | ||
|
@@ -122,6 +142,21 @@ Feature: Backpack badges | |
And I should not see "https://dc.imsglobal.org" | ||
And "Delete" "button" should not exist | ||
|
||
@javascript | ||
Scenario: Move up and down site backpack | ||
Given I am on homepage | ||
And I log in as "admin" | ||
And I navigate to "Badges > Manage backpacks" in site administration | ||
And "Move up" "icon" should exist in the "https://dc.imsglobal.org" "table_row" | ||
And "Move down" "icon" should exist in the "https://dc.imsglobal.org" "table_row" | ||
When I click on "Move up" "link" in the "https://dc.imsglobal.org" "table_row" | ||
Then "Move up" "icon" should not exist in the "https://dc.imsglobal.org" "table_row" | ||
And "Move down" "icon" should exist in the "https://dc.imsglobal.org" "table_row" | ||
And I click on "Move down" "link" in the "https://dc.imsglobal.org" "table_row" | ||
And I click on "Move down" "link" in the "https://dc.imsglobal.org" "table_row" | ||
And "Move up" "icon" should exist in the "https://dc.imsglobal.org" "table_row" | ||
And "Move down" "icon" should not exist in the "https://dc.imsglobal.org" "table_row" | ||
|
||
@javascript | ||
Scenario: Add a new site backpack with authentication details checkbox | ||
Given I am on homepage | ||
|
Oops, something went wrong.