mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-24 04:10:57 -05:00
Merge pull request #3549 from alphagov/go-to-broadcast-once-created
Go to broadcast, not dashboard after submitting for approval
This commit is contained in:
@@ -169,8 +169,9 @@ def preview_broadcast_message(service_id, broadcast_message_id):
|
||||
if form.validate_on_submit():
|
||||
broadcast_message.request_approval(until=form.finishes_at.data)
|
||||
return redirect(url_for(
|
||||
'.broadcast_dashboard',
|
||||
'.view_broadcast_message',
|
||||
service_id=current_service.id,
|
||||
broadcast_message_id=broadcast_message.id,
|
||||
))
|
||||
|
||||
return render_template(
|
||||
|
||||
@@ -412,7 +412,13 @@ def test_start_broadcasting(
|
||||
broadcast_message_id=fake_uuid,
|
||||
_data={
|
||||
'finishes_at': end_time,
|
||||
}
|
||||
},
|
||||
_expected_redirect=url_for(
|
||||
'main.view_broadcast_message',
|
||||
service_id=SERVICE_ONE_ID,
|
||||
broadcast_message_id=fake_uuid,
|
||||
_external=True,
|
||||
),
|
||||
),
|
||||
mock_update_broadcast_message.assert_called_once_with(
|
||||
service_id=SERVICE_ONE_ID,
|
||||
|
||||
Reference in New Issue
Block a user