From 1c303b7485701efeb448ba69ada125ba5f41a34e Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 31 May 2017 06:58:18 -0400 Subject: [PATCH] Shelve work on UI, need API --- tests/py/test_www_npm_package.py | 6 ------ tests/ttw/test_package_claiming.py | 7 +++++++ www/on/npm/index.html.spt | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/tests/py/test_www_npm_package.py b/tests/py/test_www_npm_package.py index ed1f24c0de..3969b2ec02 100644 --- a/tests/py/test_www_npm_package.py +++ b/tests/py/test_www_npm_package.py @@ -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 npm package:' in body - assert 'alice@example.com' in body diff --git a/tests/ttw/test_package_claiming.py b/tests/ttw/test_package_claiming.py index 29c7ca8733..ab46483ca4 100644 --- a/tests/ttw/test_package_claiming.py +++ b/tests/ttw/test_package_claiming.py @@ -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() diff --git a/www/on/npm/index.html.spt b/www/on/npm/index.html.spt index 8e0489f778..aee67d166e 100644 --- a/www/on/npm/index.html.spt +++ b/www/on/npm/index.html.spt @@ -24,5 +24,28 @@ npackages, Npackages = website.db.one(''' {{ sign_in_using(button_class='large') }} {% else %} + +
+ +
+ +

Application includes these packages (tap/click to + change selection)

+ + + + +
+ +
+ {% endif %} {% endblock %}