fix: pass CSRFField to dashboard template (closes #146)
All checks were successful
Check / check (pull_request) Successful in 2m30s

This commit is contained in:
user
2026-02-26 02:56:12 -08:00
parent 43cde0eefd
commit c22a2877d5
2 changed files with 3 additions and 2 deletions

View File

@@ -419,7 +419,8 @@ func TestHandleDashboard(t *testing.T) {
handler := testCtx.handlers.HandleDashboard()
handler.ServeHTTP(recorder, request)
assert.Equal(t, http.StatusOK, recorder.Code, "dashboard should not 500 when apps exist (CSRFField must be accessible)")
assert.Equal(t, http.StatusOK, recorder.Code,
"dashboard should not 500 when apps exist (CSRFField must be accessible)")
assert.Contains(t, recorder.Body.String(), "csrf-test-app")
})
}