import { test, expect } from '@playwright/test'; test('pagina de leads muestra titulo', async ({ page }) => { await page.goto('/leads'); await expect(page.locator('h3')).toContainText('Leads'); }); test('pagina nuevo lead tiene formulario', async ({ page }) => { await page.goto('/leads/nuevo'); await expect(page.locator('form')).toBeVisible(); await expect(page.locator('button:has-text("Guardar")')).toBeVisible(); });