diff --git a/tests/js/test_authed_homepage.js b/tests/js/test_authed_homepage.js index fe64ddda03..2601929ab7 100644 --- a/tests/js/test_authed_homepage.js +++ b/tests/js/test_authed_homepage.js @@ -22,12 +22,9 @@ describe('authed homepage', function() { it('should render copy correctly', function(done) { browser .url('http://localhost:8537') - .getText('.greeting h1', function(err, text) { + .getText('h1', function(err, text) { assert.equal(text, 'Welcome, alice!'); }) - .getText('.greeting p:first-of-type', function(err, text) { - assert.equal(text, 'Thanks for joining Gratipay!'); - }) .deleteCookie('session') .call(done); }); diff --git a/www/index.html.spt b/www/index.html.spt index ebd3b79773..2cac1ad776 100644 --- a/www/index.html.spt +++ b/www/index.html.spt @@ -4,6 +4,7 @@ from gratipay.models import community if not user.ANON: participant = user.participant # for team listing + title = _("Welcome, {0}!", participant.username) communities = community.get_list_for(website.db, user.participant.id) def with_others(obj): @@ -47,7 +48,7 @@ if not user.ANON: {% endif %} {% endblock %} -{% block heading %}{% endblock %} +{% block heading %}{{ super() if not user.ANON }}{% endblock %} {% block content %} {% if user.ANON %}