From 8eb82c5f9dd32e16609f097d60376dfda8a9b9a1 Mon Sep 17 00:00:00 2001 From: Tonio Date: Wed, 2 Dec 2026 00:55:20 -0800 Subject: [PATCH] Cover shared sizing for loading and ready credential cards --- ui/src/components/AdapterLoginChrome.test.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/src/components/AdapterLoginChrome.test.tsx b/ui/src/components/AdapterLoginChrome.test.tsx index a8c893bcdfd..bae179d506d 100644 --- a/ui/src/components/AdapterLoginChrome.test.tsx +++ b/ui/src/components/AdapterLoginChrome.test.tsx @@ -222,6 +222,15 @@ describe("the connect step's cards", () => { expect(plain!.hasAttribute("aria-describedby")).toBe(false); }); + it.each([false, true])("shares the dialog sizing rule across card layouts (loading=%s)", (loading) => { + render(<> + + + ); + expect(Array.from(container.children).every(card => card.matches("[data-login-card]"))).toBe(true); + expect(container.children).toHaveLength(2); + }); + it("holds one height across the card's waiting and ready states", () => { // The card opens on a spinner and then fills. Both states share a floor, so // the footer below is pushed down once for one event rather than twice —