Use new ‘add’ buttons on branding management pages

‘Add’ buttons are generally:
- at the bottom of the page
- sticky
- grey
This commit is contained in:
Chris Hill-Scott
2019-05-20 15:56:49 +01:00
parent b1df698cf7
commit ee33f91621
4 changed files with 12 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ def test_email_branding_page_shows_full_branding_list(
page.select_one('h1').text
) == "Email branding"
assert page.select_one('.column-three-quarters a')['href'] == url_for('main.create_email_branding')
assert page.select('.column-three-quarters a')[-1]['href'] == url_for('main.create_email_branding')
assert brand_names == [
'org 1',

View File

@@ -33,7 +33,7 @@ def test_letter_branding_page_shows_full_branding_list(
page.select_one('h1').text
) == "Letter branding"
assert page.select_one('.column-three-quarters a')['href'] == url_for('main.create_letter_branding')
assert page.select('.column-three-quarters a')[-1]['href'] == url_for('main.create_letter_branding')
assert brand_names == [
'HM Government',