From 146d5cc07a1116a5915efee62c32d2c396aa951e Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Fri, 29 Nov 2019 17:40:45 +0000 Subject: [PATCH] Fix test broken by HTML changes on API page I moved the meta for each message into the `

` in each `` to make the heading unique. This broke the test. --- tests/app/main/views/test_api_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/main/views/test_api_integration.py b/tests/app/main/views/test_api_integration.py index 326f68d1e..5ba9a68c1 100644 --- a/tests/app/main/views/test_api_integration.py +++ b/tests/app/main/views/test_api_integration.py @@ -37,7 +37,7 @@ def test_should_show_api_page( rows = page.find_all('details') assert len(rows) == 5 for row in rows: - assert row.find('h3').string.strip() == '07123456789' + assert row.select('h3 .govuk-details__summary-text')[0].string.strip() == '07123456789' def test_should_show_api_page_with_lots_of_notifications(