oficina / docs Public

Assert the Keymail continuation is the door

Review (Fable): the previous commit said so but only tested /signin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 13310c583ef24267b75fe78b6df34f51d28228c6 parent 5b888d8
1 file changed, +6 −0
  • internal/docs/auth_navigation_test.go +6 −0

CI passed — run details

diff --git a/internal/docs/auth_navigation_test.go b/internal/docs/auth_navigation_test.go
index a1f9584..9288162 100644
--- a/internal/docs/auth_navigation_test.go
+++ b/internal/docs/auth_navigation_test.go
@@ -48,6 +48,12 @@ func TestKeymailContinuation(t *testing.T) {
if strings.Contains(body, `action="/signin"`) {
t.Fatal("continuation rendered another sign-in form")
}
+ // It is the door's card on the sky, not a bare page.
+ for _, part := range []string{"estilo-door", "estilo-sky-layer", "<span>Docs</span>"} {
+ if !strings.Contains(body, part) {
+ t.Fatalf("continuation is not the door: lacks %q", part)
+ }
+ }
if dir := os.Getenv("DOCS_OAUTH_BROWSER_FIXTURE"); dir != "" {
if err := os.MkdirAll(dir, 0700); err != nil {
t.Fatal(err)