mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
* fix: clarify plugin publish ownership state * test: tolerate publish route migration in prod smoke * fix: reserve publish route collisions * fix: preflight package scope owner mismatches in CLI * fix: keep package scope validation server-side * docs: explain ClawHub publishing flow * fix: include publishing docs link in scope errors * fix: centralize docs links * fix: build docs links with URL * fix: shorten package scope docs hint
20 lines
782 B
TypeScript
20 lines
782 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
import { expectHealthyPage, trackRuntimeErrors } from "./helpers/runtimeErrors";
|
|
|
|
test("upload shows signed-out publish gate", async ({ page }) => {
|
|
const errors = trackRuntimeErrors(page);
|
|
|
|
await page.goto("/upload", { waitUntil: "domcontentloaded" });
|
|
await expect(page).toHaveURL(/\/skills\/publish$/);
|
|
await expect(page.getByText("Sign in to publish a skill")).toBeVisible();
|
|
await expectHealthyPage(page, errors);
|
|
});
|
|
|
|
test("import shows signed-out gate", async ({ page }) => {
|
|
const errors = trackRuntimeErrors(page);
|
|
|
|
await page.goto("/import", { waitUntil: "domcontentloaded" });
|
|
await expect(page.getByText("Sign in to import and publish skills")).toBeVisible();
|
|
await expectHealthyPage(page, errors);
|
|
});
|