docs: clarify workspace authoring guidance

This commit is contained in:
2026-08-15 21:25:48 +02:00
parent a02ac52836
commit 460caa550c
2 changed files with 14 additions and 3 deletions
+6 -1
View File
@@ -92,7 +92,7 @@ test("offers a button above the workspace list that returns to Level 1", async (
expect(await screen.findByRole("heading", { name: "Workspace-specific actions" })).toBeVisible();
const navigation = screen.getByRole("navigation", { name: "Workspaces" });
const backButton = within(navigation).getByRole("button", { name: "Back to main page" });
const backButton = within(navigation).getByRole("button", { name: "Back to Level 1" });
expect(backButton).toHaveClass("border-border", "bg-card", "w-full");
expect(backButton.compareDocumentPosition(within(navigation).getByText("Available workspaces"))
& Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
@@ -114,6 +114,11 @@ test("level one explains the read-only Git sequence and the repository update bu
const overview = screen.getByTestId("workspace-overview");
expect(within(overview).getByText(/Git server such as GitHub, GitLab, or Gitea/i)).toBeVisible();
expect(within(overview).getByText(/configured during ThothII installation/i)).toBeVisible();
expect(within(overview).getAllByRole("listitem")[0]).toHaveTextContent(/choosing any local directory you prefer/i);
expect(within(overview).getByRole("link", { name: /workspace authoring instructions on GitHub/i })).toHaveAttribute(
"href",
"https://github.com/mptyl/ThothII/blob/main/docs/install/local-workspace-registry.md#prepare-and-publish-a-workspace-source",
);
expect(within(overview).getAllByText(/managed read-only checkout/i)).toHaveLength(2);
expect(within(overview).getByText(/current active revision remains unchanged/i)).toBeVisible();
expect(within(overview).getByText(/No workspace selection is required/i)).toBeVisible();