Card compact and expanded template
This commit is contained in:
1 parent
f60df15c2b
commit
b2ed1d438c
44 files changed
+1920
-48
No files matched your search
@@ -133,6 +133,20 @@ describe("Create", () => {
|
||||
expect(stepper).toHaveAttribute("aria-valuemax", "5");
|
||||
});
|
||||
|
||||
it("renders custom header when headerContent is provided", () => {
|
||||
renderWithProviders(
|
||||
<Create
|
||||
{...defaultProps}
|
||||
title="Default Title"
|
||||
description="Default description"
|
||||
headerContent={<span>Custom header</span>}
|
||||
/>,
|
||||
);
|
||||
expect(screen.getByText("Custom header")).toBeInTheDocument();
|
||||
expect(screen.queryByText("Default Title")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("Default description")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders custom footer content", () => {
|
||||
renderWithProviders(
|
||||
<Create
|
||||
|
||||
Reference in new issue
Block a user