feat: add PublicDashboard feature set and update ComponentsModal test for improved readability

This commit is contained in:
Nawaz Dhandala
2026-03-30 17:18:00 +01:00
parent e953b33703
commit 64f21ac8b1
2 changed files with 11 additions and 2 deletions

View File

@@ -85,7 +85,9 @@ describe("ComponentsModal", () => {
categories={mockedCategories}
/>,
);
expect(screen.getByPlaceholderText("Search components...")).toBeInTheDocument();
expect(
screen.getByPlaceholderText("Search components..."),
).toBeInTheDocument();
});
it("should display categories and components", () => {
@@ -325,7 +327,9 @@ describe("ComponentsModal", () => {
/>,
);
mockedComponents.forEach((comp: ComponentMetadata) => {
const searchInput: HTMLElement = screen.getByPlaceholderText("Search components...");
const searchInput: HTMLElement = screen.getByPlaceholderText(
"Search components...",
);
fireEvent.change(searchInput, { target: { value: comp.title } });
fireEvent.change(searchInput, { target: { value: "" } }); // clear search