Commit da3a1065 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1568616: Added email to warning message

in open badges block
updated behat test

behatnotneeded

Change-Id: Id26fabb04f570a39fd7f193439b360d001dfa6cf
(cherry picked from commit 219eb692)
parent 3a2b9657
......@@ -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)
));
......@@ -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';
......
......@@ -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."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment