     offered_course = create_attendance(students)
 
     conn = get user_conn, attendance_path(user_conn, :show, offered_course.id)
-    assert html_response(conn, 200) =~ "Show attendance for"
+    assert html_response(conn, 200) =~ ~r/Attendances for\s+#{offered_course.course.name}\s+in\s+#{offered_course.term.name}/
   end
 
   test "shows chosen resource by user teacher", %{conn: _conn} do

    offered_course = create_attendance([student])

    conn = get user_conn, attendance_path(user_conn, :show, offered_course.id)
    assert html_response(conn, 200) =~ "Show attendance for"
  end

  test "does not show chosen resource by user volunteer", %{conn: _conn} do


    conn = get coordinator_conn,
               attendance_fill_course_path(coordinator_conn, :fill_course, offered_course.id)
    assert html_response(conn, 200) =~ "Fill attendances for #{offered_course.course.name} in #{offered_course.term.name}"
  end

  test "renders form for editing course attendance if requested by by user teacher", %{conn: _conn} do
