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 —