Normalise heading sizes

Since we added template folders the templates page has had a ‘medium’
sized heading, where other pages have stuck with a ‘large’ size.

This commit rationalises the decision around which pages have which
heading size:
- ‘navigation’ pages (eg templates, team members, email reply to
  addresses) have medium sized headings
- transactional pages (ie ones which have a green button) keep the
  larger heading size
This commit is contained in:
Chris Hill-Scott
2019-04-23 10:03:28 +01:00
parent 75bbf4f45c
commit d9da63401f
18 changed files with 32 additions and 30 deletions

View File

@@ -66,7 +66,7 @@ def test_view_organisation_shows_the_correct_organisation(
org_id=ORGANISATION_ID,
)
assert normalize_spaces(page.select_one('.heading-large').text) == 'Services'
assert normalize_spaces(page.select_one('h1').text) == 'Services'
def test_create_new_organisation(

View File

@@ -798,21 +798,21 @@ def test_update_delivery_status_and_receive_text_message_callbacks_without_chang
@pytest.mark.parametrize('service_callback_api, delivery_url, expected_1st_table_row', [
(
None, {},
'Callbacks for delivery receipts Not set Change'
'Delivery receipts Not set Change'
),
(
sample_uuid(), {'url': 'https://delivery.receipts'},
'Callbacks for delivery receipts https://delivery.receipts Change'
'Delivery receipts https://delivery.receipts Change'
),
])
@pytest.mark.parametrize('inbound_api, inbound_url, expected_2nd_table_row', [
(
None, {},
'Callbacks for received text messages Not set Change'
'Received text messages Not set Change'
),
(
sample_uuid(), {'url': 'https://inbound.sms'},
'Callbacks for received text messages https://inbound.sms Change'
'Received text messages https://inbound.sms Change'
),
])
def test_callbacks_page_works_when_no_apis_set(