feat(webui): unify the Apps catalog (#6700)
* feat(webui): unify the Apps catalog * fix(webui): serve all channel branding locally * fix(webui): refine Apps navigation and sidebar
This commit is contained in:
1 parent
5997a714f2
commit
2b232c9133
89 files changed
+1576
-1024
No files matched your search
@@ -406,11 +406,12 @@ describe("Settings channels", () => {
|
||||
expect(await screen.findByRole("button", { name: "View Enabled channel settings" })).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "View Enabled dependency channel settings" })).toBeInTheDocument();
|
||||
expect(screen.queryByRole("button", { name: "View Disabled channel settings" })).not.toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "Enabled" })).toHaveAttribute("aria-pressed", "true");
|
||||
expect(screen.getByRole("switch", { name: "Enabled only" })).toBeChecked();
|
||||
expect(screen.queryByText("No installation needed")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("Requires dependencies")).not.toBeInTheDocument();
|
||||
|
||||
fireEvent.click(screen.getByRole("button", { name: "All" }));
|
||||
await userEvent.click(screen.getByRole("switch", { name: "Enabled only" }));
|
||||
expect(screen.getByRole("switch", { name: "Enabled only" })).not.toBeChecked();
|
||||
expect(screen.getByRole("button", { name: "View Disabled channel settings" })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
@@ -430,7 +431,7 @@ describe("Settings channels", () => {
|
||||
|
||||
expect(await screen.findByRole("button", { name: "View First channel settings" })).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "View Second channel settings" })).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "All" })).toHaveAttribute("aria-pressed", "true");
|
||||
expect(screen.getByRole("switch", { name: "Enabled only" })).not.toBeChecked();
|
||||
});
|
||||
|
||||
it("shows all channels by default when only the always-enabled WebUI is enabled", async () => {
|
||||
@@ -453,7 +454,7 @@ describe("Settings channels", () => {
|
||||
|
||||
expect(await screen.findByText("nanobot WebUI")).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "View Disabled channel settings" })).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "All" })).toHaveAttribute("aria-pressed", "true");
|
||||
expect(screen.getByRole("switch", { name: "Enabled only" })).not.toBeChecked();
|
||||
});
|
||||
|
||||
it("replaces the installed channel switch with an in-row restart action", async () => {
|
||||
|
||||
Reference in new issue
Block a user