From fa788ec4e206464875807955030bbd0b2bf39ceb Mon Sep 17 00:00:00 2001 From: Nisha Yerunkar Date: Fri, 27 Oct 2023 15:44:12 -0700 Subject: [PATCH] Add clarifying comment to test --- .../src/components/__tests__/accordion.test.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/wonder-blocks-accordion/src/components/__tests__/accordion.test.tsx b/packages/wonder-blocks-accordion/src/components/__tests__/accordion.test.tsx index 1900e370e..854c8416a 100644 --- a/packages/wonder-blocks-accordion/src/components/__tests__/accordion.test.tsx +++ b/packages/wonder-blocks-accordion/src/components/__tests__/accordion.test.tsx @@ -380,7 +380,11 @@ describe("Accordion", () => { const sectionHeader = screen.getByTestId("section-header-test-id"); // Assert + // The parent has animated=true, so the child's animated=false + // should be overridden. expect(sectionHeader).toHaveStyle({ + // The existence of the transition style means that the + // accordion is animated. transition: "border-radius 300ms", }); });