       Routes.internal_contest_results_path(conn, :publish_results, contest),
       "The results of these 2 performances were published."
     )
+  end
+
+  defp assert_certificates_success(conn) do
+    assert html_response(conn, 200) =~ "Create certificates"
   end
 
   defp test_reschedule_success(conn, contest) do

    end
  end

  # Private helpers

  defp insert_own_contest(user) do

    conn |> patch(Routes.internal_contest_results_path(conn, :update_results_public, contest), params)
  end

  defp attempt_certificates(conn, contest) do
    get(conn, Routes.internal_contest_performances_path(conn, :certificates, contest))
  end

  defp attempt_print_certificates(conn, contest) do
    p1 = insert_performance(contest)
    p2 = insert_performance(contest)

    get(conn, Routes.internal_contest_performance_path(conn,
      :print_certificates, contest, performance_ids: [p1.id, p2.id])
    )
  end

  defp assert_create_success(conn, contest, performance) do
    assert_flash_redirect(conn,
      Routes.internal_contest_performance_path(conn, :show, contest, performance),
