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-CREATE-001: crea un borrador mínimo sin líneas y comprueba persistencia", async ({ page, }, testInfo) => { await loginViaUi(page); const proforma = await createProformaViaUi(page, testInfo); await page.reload(); await expect(page).toHaveURL((url) => url.pathname === `/proformas/${proforma.id}/edit`); await expect(page.locator('input[name="proformaReference"]')).toHaveValue(proforma.reference); await expect(page.locator("#proforma-recipient-name")).toHaveText(proforma.customer.name); });