Merge pull request #2293 from alphagov/fix-live-search-brand-select

Fix live search on email brand selection
This commit is contained in:
Chris Hill-Scott
2018-09-06 15:33:53 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -1926,6 +1926,9 @@ def test_should_show_live_search_if_list_of_brand_styles_taller_than_page(
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.select('.live-search')
search_target = page.select_one('.live-search')['data-targets']
assert search_target == '.multiple-choice'
assert len(page.select(search_target)) == 9
def test_should_send_branding_and_organisations_to_preview(