mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Merge pull request #796 from alphagov/hide-csv-on-dashboard-again
Really hide the ‘download CSV’ link in the tour
This commit is contained in:
@@ -97,7 +97,8 @@ def view_job(service_id, job_id):
|
|||||||
".view_job_updates",
|
".view_job_updates",
|
||||||
service_id=service_id,
|
service_id=service_id,
|
||||||
job_id=job['id'],
|
job_id=job['id'],
|
||||||
status=request.args.get('status', '')
|
status=request.args.get('status', ''),
|
||||||
|
help=get_help_argument()
|
||||||
),
|
),
|
||||||
partials=get_job_partials(job),
|
partials=get_job_partials(job),
|
||||||
help=get_help_argument()
|
help=get_help_argument()
|
||||||
|
|||||||
@@ -120,6 +120,13 @@ def test_should_show_not_show_csv_download_in_tour(
|
|||||||
))
|
))
|
||||||
|
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
assert url_for(
|
||||||
|
'main.view_job_updates',
|
||||||
|
service_id=service_one['id'],
|
||||||
|
job_id=fake_uuid,
|
||||||
|
status='',
|
||||||
|
help=3
|
||||||
|
).replace('&', '&') in response.get_data(as_text=True)
|
||||||
assert url_for(
|
assert url_for(
|
||||||
'main.view_job_csv',
|
'main.view_job_csv',
|
||||||
service_id=service_one['id'],
|
service_id=service_one['id'],
|
||||||
|
|||||||
Reference in New Issue
Block a user