import { expect, test } from "@playwright/test"; import { loginViaUi } from "../../support/login-via-ui"; import { createProformaViaUi } from "./support/create-proforma-via-ui"; test("CUSTOMER-INVOICES-PROFORMA-VIEW-001: muestra referencia y cliente persistidos al abrir y recargar detalle", async ({ page, }, testInfo) => { await loginViaUi(page); const proforma = await createProformaViaUi(page, testInfo); await page.goto(`/proformas/${proforma.id}`); const identity = page.locator("#proforma-detail-identity"); await expect(identity).toContainText(proforma.reference); await expect(identity).toContainText(proforma.customer.name); await page.reload(); await expect(identity).toContainText(proforma.reference); await expect(identity).toContainText(proforma.customer.name); });