add fresh install redirect and admin provider tests

Fresh installs now redirect to /users/register instead of showing the
demo shop. Post-login redirect goes to /admin dashboard (with setup
checklist) instead of /admin/settings. Added 16 provider tests covering
index (list, delete, sync) and form (new, edit, test connection).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-12 14:40:58 +00:00
parent 0dac93ec0b
commit 2cc8c4a9cb
13 changed files with 312 additions and 15 deletions

View File

@@ -1,5 +1,13 @@
defmodule SimpleshopThemeWeb.PageControllerTest do
use SimpleshopThemeWeb.ConnCase
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"/")