towerops/test/towerops_web/controllers/page_html_test.exs
Graham McIntire 146f5745cf
fix: resolve compilation errors, test failures, and credo issues
- Escape HEEx template braces in GraphQL/API docs with raw(~S[...])
- Fix test assertions for updated marketing copy and UI text
- Extract helper functions in GraphQL resolvers to reduce nesting depth
- Create shared ErrorHelpers module for API controllers
- Fix ETS race condition in brute force whitelist cache for async tests
- Fix property test generators to use ASCII instead of printable unicode
- Add alert_severity helper to site_live/show
- Update accounts fixtures for explicit user confirmation
2026-02-14 12:23:10 -06:00

11 lines
325 B
Elixir

defmodule ToweropsWeb.PageHTMLTest do
use ToweropsWeb.ConnCase, async: true
import Phoenix.Template, only: [render_to_string: 4]
test "renders home.html" do
html = render_to_string(ToweropsWeb.PageHTML, "home", "html", flash: %{})
assert html =~ "business impact"
assert html =~ "network event"
end
end