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.
MDL-68746 core_badges: remove Issuer details from badges form
When OBv2.0 support was added, the issuername and issuercontact fields were changed to static. In order to avoid confusion for the user, these fields shouldn't be displayed for OBv2.0 or higher.
- Loading branch information
Showing
3 changed files
with
15 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,6 @@ Feature: Add badges to the system | |
Given I am on homepage | ||
And I log in as "admin" | ||
|
||
@javascript | ||
Scenario: Setting badges settings | ||
Given I navigate to "Badges > Badges settings" in site administration | ||
And I set the field "Badge issuer name" to "Test Badge Site" | ||
And I set the field "Badge issuer email address" to "[email protected]" | ||
And I press "Save changes" | ||
And I follow "Badges" | ||
When I follow "Add a new badge" | ||
And I press "Issuer details" | ||
Then I should see "[email protected]" | ||
And I should see "Test Badge Site" | ||
|
||
@javascript | ||
Scenario: Accessing the badges | ||
And I press "Customise this page" | ||
|
@@ -31,7 +19,11 @@ Feature: Add badges to the system | |
|
||
@javascript @_file_upload | ||
Scenario: Add a badge | ||
Given I navigate to "Badges > Add a new badge" in site administration | ||
Given I navigate to "Badges > Badges settings" in site administration | ||
And I set the field "Badge issuer name" to "Test Badge Site" | ||
And I set the field "Badge issuer email address" to "[email protected]" | ||
And I press "Save changes" | ||
And I navigate to "Badges > Add a new badge" in site administration | ||
And I set the following fields to these values: | ||
| Name | Test badge with 'apostrophe' and other friends (<>&@#) | | ||
| Version | v1 | | ||
|
@@ -47,6 +39,11 @@ Feature: Add badges to the system | |
And I should see "Related badges (0)" | ||
And I should see "Alignments (0)" | ||
And I should not see "Create badge" | ||
And I should not see "Issuer details" | ||
And I follow "Overview" | ||
And I should see "Issuer details" | ||
And I should see "Test Badge Site" | ||
And I should see "[email protected]" | ||
And I follow "Manage badges" | ||
And I should see "Number of badges available: 1" | ||
And I should not see "There are no badges available." | ||
|