diff --git a/packages/orbit-components/src/Collapse/Collapse.stories.tsx b/packages/orbit-components/src/Collapse/Collapse.stories.tsx
index ab49aae7e0..a4513f2ca8 100644
--- a/packages/orbit-components/src/Collapse/Collapse.stories.tsx
+++ b/packages/orbit-components/src/Collapse/Collapse.stories.tsx
@@ -213,6 +213,12 @@ export const Uncontrolled: Story = {
args: {
expanded: undefined,
},
+
+ parameters: {
+ controls: {
+ exclude: "expanded",
+ },
+ },
};
export const Rtl: Story = {
diff --git a/packages/orbit-components/src/Collapse/__tests__/index.test.tsx b/packages/orbit-components/src/Collapse/__tests__/index.test.tsx
index 5da88c6b8c..4378251df8 100644
--- a/packages/orbit-components/src/Collapse/__tests__/index.test.tsx
+++ b/packages/orbit-components/src/Collapse/__tests__/index.test.tsx
@@ -4,10 +4,7 @@ import userEvent from "@testing-library/user-event";
import { render, screen } from "../../test-utils";
import Collapse from "..";
-const toggleButtons = [
- [0, "label"],
- [1, "icon button"],
-];
+const toggleTriggers = ["group", "button"];
describe("Collapse", () => {
const user = userEvent.setup();
@@ -31,26 +28,34 @@ describe("Collapse", () => {
expect(screen.getByText("customLabel")).toBeInTheDocument();
});
- it.each(toggleButtons)("should trigger click handler when clicking on %s", async buttonIndex => {
+ it.each(toggleTriggers)("should trigger click handler when clicking on %s", async trigger => {
const onClick = jest.fn();
render(