2026-02-18 21:23:15 +00:00
|
|
|
defmodule BerrypodWeb.PageControllerTest do
|
|
|
|
|
use BerrypodWeb.ConnCase, async: false
|
2026-02-12 14:40:58 +00:00
|
|
|
|
2026-02-18 21:23:15 +00:00
|
|
|
import Berrypod.AccountsFixtures
|
2026-02-12 14:40:58 +00:00
|
|
|
|
|
|
|
|
setup do
|
|
|
|
|
user_fixture()
|
2026-02-18 21:23:15 +00:00
|
|
|
{:ok, _} = Berrypod.Settings.set_site_live(true)
|
2026-02-12 14:40:58 +00:00
|
|
|
:ok
|
|
|
|
|
end
|
2025-12-30 12:26:26 +00:00
|
|
|
|
2026-01-17 16:19:35 +00:00
|
|
|
test "GET / renders the shop home page", %{conn: conn} do
|
2025-12-30 12:26:26 +00:00
|
|
|
conn = get(conn, ~p"/")
|
2026-03-03 00:56:01 +00:00
|
|
|
assert html_response(conn, 200) =~ "Your headline goes here"
|
2025-12-30 12:26:26 +00:00
|
|
|
end
|
|
|
|
|
end
|