mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: add PublicDashboard feature set and update ComponentsModal test for improved readability
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user