Make it clearer what you’re downloading

The previous text didn’t make it clear _what_ you were downloading as a
CSV file, you had to infer it from the context.

And the fact that it’s a CSV file is immaterial, it’s the data you care
about, not the format.
This commit is contained in:
Chris Hill-Scott
2016-07-18 08:36:44 +01:00
parent 500a503f07
commit cfadead292
2 changed files with 5 additions and 3 deletions

View File

@@ -90,12 +90,14 @@ def test_should_show_page_for_one_job(
job_id=fake_uuid,
status=status_argument,
)
assert page.find('a', {'download': 'download'})['href'] == url_for(
csv_link = page.find('a', {'download': 'download'})
assert csv_link['href'] == url_for(
'main.view_job_csv',
service_id=service_one['id'],
job_id=fake_uuid,
status=status_argument
)
assert csv_link.text == 'Download this report'
mock_get_notifications.assert_called_with(
service_one['id'],
fake_uuid,