mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 10:58:58 -04:00
Fix test broken by HTML changes on API page
I moved the meta for each message into the `<h3>` in each `<summary>` to make the heading unique. This broke the test.
This commit is contained in:
BIN
tests/app/main/views/.test_api_integration.py.swp
Normal file
BIN
tests/app/main/views/.test_api_integration.py.swp
Normal file
Binary file not shown.
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user