mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-27 20:51:00 -04:00
Add a test for the ‘available for 7 days’ text
So that we can check it’s still correct when we make it dynamic.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<p class="bottom-gutter">
|
||||
<a href="{{ url_for('.view_job_csv', service_id=current_service.id, job_id=job.id, status=status) }}" download="download" class="heading-small">Download this report</a>
|
||||
 
|
||||
Available for 7 days
|
||||
<span id="time-left">Available for 7 days</span>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -98,6 +98,7 @@ def test_should_show_page_for_one_job(
|
||||
status=status_argument
|
||||
)
|
||||
assert csv_link.text == 'Download this report'
|
||||
assert page.find('span', {'id': 'time-left'}).text == 'Available for 7 days'
|
||||
mock_get_notifications.assert_called_with(
|
||||
service_one['id'],
|
||||
fake_uuid,
|
||||
|
||||
Reference in New Issue
Block a user