import { expect, test } from "./utils/test"; import { getTenantCredentials, loginAsTenantUser } from "./utils/auth"; import { skipIfUnavailable } from "./utils/navigation"; import { skipOrFailWhenE2eInputsMissing } from "./utils/readiness"; /** * Signatur smoke (AK-P16d / DoD D.19): Login -> Projekt-Detail oeffnen -> * Signatur-Panel sichtbar. * * Das Panel (`data-ui-id="ui.projects.operations.signature"`) haengt am * Projekt-Kern und rendert im Projekt-Detail oberhalb der Unterbereichs-Tabs. * Braucht ein erreichbares Projekt im Ziel-Environment; der Pfad kommt aus * `E2E_TENANT_PROJECT_PATH` (z.B. /demo-pro-crm/projects/). Der * Projektpfad skippt bewusst weich (kein REQUIRE_E2E_READINESS-fail-closed): * die Readiness-Lane seedet (noch) kein Projekt-Fixture. */ const credentials = getTenantCredentials(); const projectPath = process.env.E2E_TENANT_PROJECT_PATH; test.describe("signature smoke", () => { test("renders the project signature panel", async ({ page }) => { skipOrFailWhenE2eInputsMissing(["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD"], "Signature smoke inputs not configured"); test.skip(!projectPath?.trim(), "E2E_TENANT_PROJECT_PATH not configured"); await loginAsTenantUser(page, credentials!); const response = await page.goto(projectPath!, { waitUntil: "domcontentloaded" }); await skipIfUnavailable(page, response, "Project path is not reachable in this environment"); await expect(page.locator('[data-ui-id="ui.projects.operations.signature"]')).toBeVisible(); }); });