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

/**
 * Issues #24 / #40 — change the sign-out control's tooltip from 'Sign out' to
 * 'Log out'. Both were pipeline / button-simulation TEST issues.
 *
 * VERIFICATION RESULT: NOT FIXED on staging. The header logout control still uses
 * title="Sign out". Marked test.fail() to record the gap without failing the suite;
 * if the copy is changed to 'Log out' this test will pass and flag the annotation.
 */
test.fail(true, "Issues #24/#40 not implemented: logout tooltip is still 'Sign out'");

test("#24/#40 logout control tooltip reads 'Log out'", async ({ page }) => {
  await login(page, USERS.MANAGER);
  await page.goto("/dashboard");
  await expect(page.locator('[title="Log out"]')).toBeVisible();
});
