Files
clawhub/e2e/publish-entry-workflows.pw.test.ts
Patrick Erichsen 8c86d6f570 Fix plugin publish ownership visibility (#2073)
* 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
2026-05-07 19:03:40 -07:00

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);
});