import { expect } from "e2e";
import { test, WEB } from "./t3.ts";
test("Restart with Claude plugin sync disabled hides synced skills", WEB, async ({t3, app, screen}) => {
  await t3.project("skills-demo");
  await t3.open();
  const composer = screen.getByTestId("composer-editor");
  await composer.fill("$demo", {timeout: 120000});
  await expect(screen.getByText("No skills found. Try / to browse provider commands.").first()).toBeVisible();
  await app.screenshot("sync-disabled-after-restart");
  await composer.fill("Please run /demo");
  await expect(screen.getByText("No matching command.").first()).toBeVisible();
  await app.screenshot("sync-disabled-slash-after-restart");
});
