Commit 219eb692 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1568616: Added email to warning message

in open badges block
updated behat test

behatnotneeded

Change-Id: Id26fabb04f570a39fd7f193439b360d001dfa6cf
parent 64f3693f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,6 +34,6 @@ json_reply(false, array(
    'hosttitle' => $hosttitle,
    'uid' => $uid,
    'badgegroups' => isset($uid) ? PluginBlocktypeOpenbadgedisplayer::get_badgegroupnames($host, $uid) : null,
    'nobackpackmsg' => get_string('nobackpackidin', 'blocktype.openbadgedisplayer', $hosttitle),
    'nobadgegroupsmsg' => get_string('nobadgegroupsin', 'blocktype.openbadgedisplayer', $hosttitle)
    'nobackpackmsg' => get_string('nobackpackidin1', 'blocktype.openbadgedisplayer', $email, $hosttitle),
    'nobadgegroupsmsg' => get_string('nobadgegroupsin1', 'blocktype.openbadgedisplayer', $hosttitle, $email)
));
+2 −2
Original line number Diff line number Diff line
@@ -57,9 +57,9 @@ $string['nobackpack'] = 'No Backpack found.<br> Please add your <a href="%s">Bac

$string['nobadgegroups'] = 'No public badge collections / badges found.';

$string['nobackpackidin'] = 'Your email is not found in the service %s.';
$string['nobackpackidin1'] = 'Your email %s is not found in the service %s.';

$string['nobadgegroupsin'] = 'No public badge collections / badges found in the service: %s.';
$string['nobadgegroupsin1'] = 'No public badge collections / badges found in the service: %s for email %s.';

$string['confighelp'] = 'Select the badge collections to show in this block.<br/>Visit the following services to manage your collections and badges:<br/>%s';

+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ Scenario: Open badges block
    And I follow "Open Badges"
    And I press "Add"
    And I wait "5" seconds
    Then I should see "Your email is not found in the service"
    Then I should see "Your email test01@example.com is not found in the service"
    And I press "Save"
    And I wait "1" seconds
    Then I should see "No public badge collections / badges found."