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>
1 file changed,
+6
−0
internal/docs/auth_navigation_test.go+6 −0
CI passed — run details
Intent
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) |