mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Show jobs in basic view
There are some teams who send jobs on a daily/weekly basis. They have team members who only use Notify for this purpose. So they would probably benefit from basic view, because they don’t need to see the dashboard. This commit: - adds a new item (uploaded files) to the basic view navigation for teams that have sent at least one job - makes the job pages visible to basic view users I think we should do this now, rather than as a later enhancement to basic view. We only have one chance to announce the feature, so teams who do send jobs may otherwise discount it as not useful for them and the opportunity to have them use it is lost.
This commit is contained in:
@@ -152,6 +152,7 @@ def test_caseworkers_get_caseworking_navigation(
|
||||
mocker,
|
||||
fake_uuid,
|
||||
mock_get_service_templates,
|
||||
mock_has_no_jobs,
|
||||
):
|
||||
mocker.patch(
|
||||
'app.user_api_client.get_user',
|
||||
@@ -161,3 +162,20 @@ def test_caseworkers_get_caseworking_navigation(
|
||||
assert normalize_spaces(page.select_one('#content nav').text) == (
|
||||
'Templates Sent messages'
|
||||
)
|
||||
|
||||
|
||||
def test_caseworkers_see_jobs_nav_if_jobs_exist(
|
||||
client_request,
|
||||
mocker,
|
||||
fake_uuid,
|
||||
mock_get_service_templates,
|
||||
mock_has_jobs,
|
||||
):
|
||||
mocker.patch(
|
||||
'app.user_api_client.get_user',
|
||||
return_value=active_caseworking_user(fake_uuid)
|
||||
)
|
||||
page = client_request.get('main.choose_template', service_id=SERVICE_ONE_ID)
|
||||
assert normalize_spaces(page.select_one('#content nav').text) == (
|
||||
'Templates Sent messages Uploaded files'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user