Refactor choose service page into macros

This makes it easier to see the logic controlling which services are
shown where because the repetitive loops have been factored out.
This commit is contained in:
Chris Hill-Scott
2019-06-07 10:16:21 +01:00
parent f774a10e3a
commit 2f711b52ea
2 changed files with 56 additions and 50 deletions

View File

@@ -89,7 +89,7 @@ def test_choose_account_should_show_choose_accounts_page(
assert outer_list_items[4].a.text == 'service_2'
assert outer_list_items[4].a['href'] == url_for('.service_dashboard', service_id='s2')
# orphaned live services
# orphaned trial services
trial_services_list_items = page.select('nav ul')[1].select('li')
assert len(trial_services_list_items) == 2
assert trial_services_list_items[0].a.text == 'org_service_3'