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

Commit

Permalink
Shelve work on UI, need API
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed May 31, 2017
1 parent 33cdf30 commit 1c303b7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/py/test_www_npm_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,3 @@ def setUp(self):
def test_anon_gets_signin_page(self):
body = self.client.GET('/on/npm/').body
assert '0 out of 1 npm package' in body

def test_auth_gets_send_confirmation_page(self):
self.make_participant('bob', claimed_time='now')
body = self.client.GET('/on/npm/', auth_as='bob').body
assert 'foo</a> npm package:' in body
assert '[email protected]' in body
7 changes: 7 additions & 0 deletions tests/ttw/test_package_claiming.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,10 @@ def setUp(self):
def test_anon_gets_sign_in_prompt(self):
self.visit('/on/npm/')
assert self.css('.important-button button').text == 'Sign in / Sign up'

def est_auth_without_email_gets_email_flow(self):
self.make_participant('alice', claimed_time='now')
self.visit('/')
self.sign_in('alice')
self.visit('/on/npm/')
import pdb; pdb.set_trace()
23 changes: 23 additions & 0 deletions www/on/npm/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,28 @@ npackages, Npackages = website.db.one('''
{{ sign_in_using(button_class='large') }}
</div>
{% else %}

<div class="important-button">
<button type="submit" class="apply selected large">
{{ _('Apply to accept payments') }}
</button>
</div>

<p class="instructions">Application includes these packages (tap/click to
change selection)</p>


<ul class="packages">
{% for package in [] %}
<li><a href="{{ package.url_path }}">{{ package.name }}</a></li>
{% endfor %}
</ul>

<div class="important-button">
<button type="submit" class="apply selected large">
{{ _('Apply to accept payments') }}
</button>
</div>

{% endif %}
{% endblock %}

0 comments on commit 1c303b7

Please sign in to comment.