import { test, expect } from "@playwright/test";
import { USERS, login } from "./helpers";

/**
 * Issue #13 — Accounts dashboard should have a 'Payments completed this month' card
 * (analogous to the manager's monthly approval card).
 *
 * VERIFICATION RESULT: NOT FIXED on staging. The Accounts dashboard currently shows
 * only "Ready for Payment" and "Payment Queue Value" — there is no
 * payments-completed-this-month card. This is marked test.fail() so the suite stays
 * green while clearly recording the gap; if the card is later added, this test will
 * start passing and flag that the annotation should be removed.
 */
test.fail(true, "Issue #13 not implemented: no 'payments completed this month' card on the Accounts dashboard");

test("#13 Accounts dashboard shows a 'Payments completed this month' card", async ({ page }) => {
  await login(page, USERS.ACCOUNTS);
  await page.goto("/dashboard");
  await expect(page.getByText(/payments? completed this month/i)).toBeVisible();
});
