import { test } from "@playwright/test";
import { captureBrowserFailures, registerAndConfirm } from "../tests/helpers";

test("create the confirmed account used by the existing admin bootstrap", async ({
  browser,
  request,
}) => {
  const admin = await registerAndConfirm(
    browser,
    request,
    "e2e-admin@example.invalid",
    "E2E Administrator",
  );
  const assertNoBrowserFailures = captureBrowserFailures(admin.page);

  assertNoBrowserFailures();
  await admin.context.close();
});
