refactor(ui): replace middle-dot separators with clearer hierarchy (#6087)
* refactor(ui): replace middle-dot separators with clearer hierarchy * refactor(ui): use layout instead of punctuation separators
This commit is contained in:
1 parent
d6ddceed99
commit
7cb396788c
82 files changed
+433
-462
No files matched your search
@@ -698,7 +698,7 @@ describe("App layout", () => {
|
||||
expect(await screen.findByRole("heading", { name: "Channels" })).toBeVisible();
|
||||
expect(window.location.hash).toBe("#/channels");
|
||||
expect(channels).toHaveAttribute("aria-current", "page");
|
||||
expect(document.title).toBe("Channels · nanobot");
|
||||
expect(document.title).toBe("Channels");
|
||||
fireEvent.click(within(sidebar).getByRole("button", { name: "New topic" }));
|
||||
await waitFor(() => expect(window.location.hash).toBe("#/new"));
|
||||
fireEvent.keyDown(window, { key: "$", code: "Digit4", ctrlKey: true, shiftKey: true });
|
||||
@@ -918,7 +918,7 @@ describe("App layout", () => {
|
||||
expect(within(screen.getByTestId("thread-header")).getByText(
|
||||
"first private message",
|
||||
)).toBeInTheDocument();
|
||||
await waitFor(() => expect(document.title).toBe("first private message · nanobot"));
|
||||
await waitFor(() => expect(document.title).toBe("first private message"));
|
||||
expect(screen.queryByRole("button", { name: "Temporary chat" })).not.toBeInTheDocument();
|
||||
|
||||
fireEvent.click(within(sidebar).getByRole("button", {
|
||||
@@ -1390,7 +1390,7 @@ describe("App layout", () => {
|
||||
"aria-current",
|
||||
"page",
|
||||
);
|
||||
expect(document.title).toBe("Skills · nanobot");
|
||||
expect(document.title).toBe("Skills");
|
||||
|
||||
fireEvent.click(screen.getByRole("button", { name: "Back to chat" }));
|
||||
expect(await screen.findByText(HERO_GREETING_PATTERN)).toBeInTheDocument();
|
||||
@@ -1796,7 +1796,7 @@ describe("App layout", () => {
|
||||
"aria-current",
|
||||
"page",
|
||||
);
|
||||
expect(document.title).toBe("Automations · nanobot");
|
||||
expect(document.title).toBe("Automations");
|
||||
|
||||
});
|
||||
|
||||
@@ -2085,7 +2085,7 @@ describe("App layout", () => {
|
||||
expect(screen.queryByText("近期无问题")).not.toBeInTheDocument();
|
||||
expect(screen.queryByText("Workspace automations")).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole("button", { name: "刷新" })).not.toBeInTheDocument();
|
||||
expect(document.title).toBe("自动任务 · nanobot");
|
||||
expect(document.title).toBe("自动任务");
|
||||
});
|
||||
|
||||
it("resizes the sidebar, collapses at the drag threshold and restores its saved width", async () => {
|
||||
@@ -2456,7 +2456,7 @@ describe("App layout", () => {
|
||||
expect(screen.queryByRole("tooltip")).not.toBeInTheDocument();
|
||||
await user.click(await within(sheet).findByRole("button", { name: `${title} mobile chat` }));
|
||||
await waitFor(() => expect(screen.queryByRole("dialog")).not.toBeInTheDocument());
|
||||
await waitFor(() => expect(document.title).toBe(`${title} mobile chat · nanobot`));
|
||||
await waitFor(() => expect(document.title).toBe(`${title} mobile chat`));
|
||||
expect(screen.getByRole("button", { name: `${title} mobile chat` }))
|
||||
.toHaveAttribute("aria-current", "page");
|
||||
}
|
||||
@@ -2874,7 +2874,7 @@ describe("App layout", () => {
|
||||
render(<App />);
|
||||
|
||||
await waitFor(() => expect(connectSpy).toHaveBeenCalled());
|
||||
await waitFor(() => expect(document.title).toBe("Active after reload · nanobot"));
|
||||
await waitFor(() => expect(document.title).toBe("Active after reload"));
|
||||
const sidebar = screen.getByRole("navigation", { name: "Sidebar navigation" });
|
||||
expect(
|
||||
within(sidebar).getByRole("button", { name: /^Active after reload$/ }),
|
||||
@@ -3048,7 +3048,7 @@ describe("App layout", () => {
|
||||
"duration-200",
|
||||
"motion-reduce:animate-none",
|
||||
);
|
||||
expect(document.title).toBe("Apps · nanobot");
|
||||
expect(document.title).toBe("Apps");
|
||||
|
||||
fireEvent.click(within(sidebar).getByRole("button", { name: "Skills" }));
|
||||
|
||||
@@ -3068,7 +3068,7 @@ describe("App layout", () => {
|
||||
"data-active-id",
|
||||
"utility:skills",
|
||||
);
|
||||
expect(document.title).toBe("Skills · nanobot");
|
||||
expect(document.title).toBe("Skills");
|
||||
});
|
||||
|
||||
it("returns from settings to the blank start page when no session was active", async () => {
|
||||
|
||||
Reference in new issue
Block a user