defmodule SimpleshopThemeWeb.PageControllerTest do
  use SimpleshopThemeWeb.ConnCase, async: false

  import SimpleshopTheme.AccountsFixtures

  setup do
    user_fixture()
    {:ok, _} = SimpleshopTheme.Settings.set_site_live(true)
    :ok
  end

  test "GET / renders the shop home page", %{conn: conn} do
    conn = get(conn, ~p"/")
    assert html_response(conn, 200) =~ "Original designs, printed on demand"
  end
end
