xtablo-source/backend/templates
Arthur Belleville b5c3fc4d48
test(02-06): add failing tests for logout, protected routes, and layout auth
- TestLogout_Success: POST /logout with valid cookie -> 303, cookie cleared, session deleted
- TestLogout_UnauthRedirectsToLogin: POST /logout without cookie -> 303 from RequireAuth
- TestLogout_HXRedirect: HTMX logout -> 200 + HX-Redirect: /login
- TestLogout_AfterLogoutSubsequentRequestUnauth: stale cookie blocked after logout
- TestProtected_HomeUnauthRedirects: GET / without session -> 303 /login
- TestProtected_HomeUnauthHXRedirect: HTMX GET / without session -> 200 + HX-Redirect
- TestProtected_HomeAuthRendersUserEmail: authed GET / -> 200 with user email
- TestLayout_LogoutFormVisibleWhenAuthed: Layout with user shows logout form
- TestLayout_LogoutFormHiddenWhenUnauthed: Layout with nil user hides logout form
2026-05-14 22:32:33 +02:00
..
.gitkeep feat(01-01): create directory skeleton and per-package doc.go placeholders 2026-05-14 17:53:55 +02:00
auth_form_errors.templ feat(02-04): signup templates (full page + HTMX fragment) with render tests 2026-05-14 22:14:28 +02:00
auth_forms.go feat(02-05): login vertical slice with rate limiting 2026-05-14 22:27:54 +02:00
auth_login.templ feat(02-05): login vertical slice with rate limiting 2026-05-14 22:27:54 +02:00
auth_signup.templ feat(02-04): signup templates (full page + HTMX fragment) with render tests 2026-05-14 22:14:28 +02:00
auth_signup_test.go feat(02-04): signup templates (full page + HTMX fragment) with render tests 2026-05-14 22:14:28 +02:00
fragments.templ feat(01-03): templ layout/index/fragments + handlers + chi router 2026-05-14 19:25:43 +02:00
index.templ feat(01-03): templ layout/index/fragments + handlers + chi router 2026-05-14 19:25:43 +02:00
layout.templ feat(01-03): templ layout/index/fragments + handlers + chi router 2026-05-14 19:25:43 +02:00
layout_test.go test(02-06): add failing tests for logout, protected routes, and layout auth 2026-05-14 22:32:33 +02:00