Always put HM Government at the top of the list

It’s the default, so we should treat it the same way we treat GOV.UK in
the email branding selection.
This commit is contained in:
Chris Hill-Scott
2018-11-05 13:34:26 +00:00
parent 65cc6adabf
commit c960fef8f8
2 changed files with 8 additions and 6 deletions

View File

@@ -2106,11 +2106,11 @@ def test_set_letter_branding_prepopulates(
for element in {'label', 'input[type=radio]'}:
assert len(page.select(element)) == 3
assert normalize_spaces(page.select('label')[0].text) == 'Animal and Plant Health Agency'
assert page.select('input')[0]['value'] == '999'
assert normalize_spaces(page.select('label')[0].text) == 'HM Government'
assert page.select('input')[0]['value'] == '001'
assert normalize_spaces(page.select('label')[1].text) == 'HM Government'
assert page.select('input')[1]['value'] == '001'
assert normalize_spaces(page.select('label')[1].text) == 'Animal and Plant Health Agency'
assert page.select('input')[1]['value'] == '999'
assert normalize_spaces(page.select('label')[2].text) == 'Land Registry'
assert page.select('input')[2]['value'] == '500'