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

test("A seat-based workspace keeps Codex as the new-thread default with no monthly credits", WEB, async ({ t3, app, screen }) => {
  await t3.project("Seat workspace");
  await t3.open();
  await screen.getByRole("button", "New thread", { exact: true }).tap();
  await app.screenshot("new-thread-model");
  await expect(screen.getByText("Codex is out of usage", { exact: false })).toBeHidden();
  await expect(screen.getByRole("button", "Seat plan", { exact: false })).toBeVisible();
});
