mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 11:20:12 -04:00
Remove value of download attribute on links
We should standardise on <a download> rather than <a download="download"> everywhere. The value of the download attribute tells the browser what filename to use, but is overridden by the Content-Disposition HTTP header. Since it’s not being used, we should remove it for the sake of disambiguation.
This commit is contained in:
@@ -97,7 +97,7 @@ def test_should_show_page_for_one_job(
|
||||
job_id=fake_uuid,
|
||||
status=status_argument,
|
||||
)
|
||||
csv_link = page.find('a', {'download': 'download'})
|
||||
csv_link = page.select_one('a[download]')
|
||||
assert csv_link['href'] == url_for(
|
||||
'main.view_job_csv',
|
||||
service_id=service_one['id'],
|
||||
|
||||
Reference in New Issue
Block a user