Add filetype to all links to download user reports / examples

This commit is contained in:
Katie Smith
2022-05-19 12:06:43 +01:00
parent 4338953d5f
commit cdfe852d25
9 changed files with 9 additions and 9 deletions

View File

@@ -666,7 +666,7 @@ def test_organisation_services_links_to_downloadable_report(
page = client_request.get('.organisation_dashboard', org_id=ORGANISATION_ID)
link_to_report = page.select_one('a[download]')
assert normalize_spaces(link_to_report.text) == 'Download this report'
assert normalize_spaces(link_to_report.text) == 'Download this report (CSV)'
assert link_to_report.attrs["href"] == url_for(
'.download_organisation_usage_report',
org_id=ORGANISATION_ID,

View File

@@ -106,7 +106,7 @@ def test_should_show_page_for_one_job(
job_id=fake_uuid,
status=status_argument
)
assert csv_link.text == 'Download this report'
assert csv_link.text == 'Download this report (CSV)'
assert page.find('span', {'id': 'time-left'}).text == 'Data available for 7 days'
assert normalize_spaces(page.select_one('tbody tr').text) == normalize_spaces(

View File

@@ -146,7 +146,7 @@ def test_returned_letters_page_with_many_letters(
expected_message
)
assert page.select_one('a[download]').text == (
'Download this report'
'Download this report (CSV)'
)
assert page.select_one('a[download]')['href'] == url_for(
'.returned_letters_report',