import { expect } from "e2e";

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

test(
  "An automatic project monogram keeps a Tai Tham stacked initial intact",
  WEB,
  async ({ t3, app, browser }) => {
    await t3.project("ᨠ᩠ᨠ Alpha");
    await t3.open();

    // The monogram tile is aria-hidden, so it has no accessible role or name.
    const monogram = browser.locator("[data-slot=project-monogram] text").first();
    await monogram.waitFor({ timeout: 120_000 });
    await app.screenshot("project-monogram");
    expect(await monogram.textContent()).toBe("ᨠ᩠ᨠA");
  },
);
