From 3cfe4740fb6ebaaeac1c744d591966eba7912bf3 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 30 Apr 2019 11:32:36 +0100 Subject: [PATCH] =?UTF-8?q?Make=20=E2=80=98Add=20a=20new=20service?= =?UTF-8?q?=E2=80=99=20a=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This, along with putting it in a sticky footer, makes it consistent with the ‘Add template’ and ‘Invite team member’ buttons. --- app/templates/views/choose-account.html | 4 +++- tests/app/main/views/accounts/test_choose_accounts.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/views/choose-account.html b/app/templates/views/choose-account.html index 7f7d793d9..a205284c2 100644 --- a/app/templates/views/choose-account.html +++ b/app/templates/views/choose-account.html @@ -36,7 +36,9 @@ {% endif %} {% if can_add_service %} - Add a new service… +
+ Add a new service +
{% endif %} {% endblock %} diff --git a/tests/app/main/views/accounts/test_choose_accounts.py b/tests/app/main/views/accounts/test_choose_accounts.py index bd0f0352f..f9d928232 100644 --- a/tests/app/main/views/accounts/test_choose_accounts.py +++ b/tests/app/main/views/accounts/test_choose_accounts.py @@ -102,7 +102,7 @@ def test_choose_account_should_show_choose_accounts_page_if_no_services( assert len(links) == 1 add_service_link = links[0] assert normalize_spaces(page.h1.text) == 'Choose service' - assert normalize_spaces(add_service_link.text) == 'Add a new service…' + assert normalize_spaces(add_service_link.text) == 'Add a new service' assert add_service_link['href'] == url_for('main.add_service')