Make the activity page update with AJAX

The activity page looks the same as the job page. So it should behave
the same and not need manually refreshing to see the new stuff.
This commit is contained in:
Chris Hill-Scott
2016-09-27 15:07:40 +01:00
parent 0d936e373a
commit d9eac94f1e
5 changed files with 122 additions and 81 deletions

View File

@@ -338,6 +338,15 @@ def test_can_show_notifications(
assert csv_response.get_data(as_text=True) == csv_content
assert 'text/csv' in csv_response.headers['Content-Type']
json_response = client.get(url_for(
'main.get_notifications_as_json',
service_id=service_one['id'],
message_type=message_type,
status=status_argument
))
json_content = json.loads(json_response.get_data(as_text=True))
assert json_content.keys() == {'counts', 'notifications'}
def test_should_show_notifications_for_a_service_with_next_previous(
app_,