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

@@ -72,6 +72,10 @@ WORKDIR /usr/src/app/FeatureSet/StatusPage
COPY ./App/FeatureSet/StatusPage/package*.json /usr/src/app/FeatureSet/StatusPage/
RUN npm install
WORKDIR /usr/src/app/FeatureSet/PublicDashboard
COPY ./App/FeatureSet/PublicDashboard/package*.json /usr/src/app/FeatureSet/PublicDashboard/
RUN npm install
WORKDIR /usr/src/app
# Expose ports.
@@ -89,6 +93,7 @@ COPY ./App/FeatureSet/Accounts /usr/src/app/FeatureSet/Accounts
COPY ./App/FeatureSet/Dashboard /usr/src/app/FeatureSet/Dashboard
COPY ./App/FeatureSet/AdminDashboard /usr/src/app/FeatureSet/AdminDashboard
COPY ./App/FeatureSet/StatusPage /usr/src/app/FeatureSet/StatusPage
COPY ./App/FeatureSet/PublicDashboard /usr/src/app/FeatureSet/PublicDashboard
# Bundle frontend source
RUN npm run build-frontends:prod
# Bundle app source

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