import { expect } from "e2e";
import { test, WEB } from "./t3.ts";

test("Claude title generation uses the instance settings", WEB, async ({t3, app, screen}) => {
  await t3.project("Settings demo");
  await t3.open();
  await screen.getByRole("textbox").fill("Explain this project");
  await screen.getByRole("textbox").press("Enter");
  await expect(screen.getByText("This turn is a replay.", {exact:false})).toBeVisible();
  await app.screenshot("generated-title");
  await expect(screen.getByText("Vertex project A applied", {exact:false}).first()).toBeVisible();
});
