Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
fix JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 10, 2015
1 parent 2102036 commit 8ce318b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions tests/js/test_authed_homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
3 changes: 2 additions & 1 deletion www/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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 %}
<div class="action">
Expand Down

0 comments on commit 8ce318b

Please sign in to comment.