diff --git a/scripts/verify-prerender.mjs b/scripts/verify-prerender.mjs index d05eb1e..7975127 100644 --- a/scripts/verify-prerender.mjs +++ b/scripts/verify-prerender.mjs @@ -119,6 +119,24 @@ const suspenseFallbacks = [ "Cargando caso LEM-BOX…", "Loading LEM-BOX case study…", ]; +const expectedPersonContent = new Map([ + [ + "/", + { + description: + "Creo sitios, aplicaciones y sistemas a medida combinando estrategia, experiencia de usuario y tecnología. También implemento automatizaciones, integraciones y asistentes con IA para conectar herramientas, optimizar procesos y reducir trabajo manual.", + jobTitle: "Integrador de tecnología con mentalidad de producto", + }, + ], + [ + "/en", + { + description: + "I create custom websites, applications, and systems by combining strategy, user experience, and technology. I also implement automations, integrations, and AI assistants to connect tools, optimize processes, and reduce manual work.", + jobTitle: "Technology integrator with a product mindset", + }, + ], +]); const expectedStructuredData = new Map([ [ "/", @@ -616,6 +634,13 @@ for (const route of expectedRoutes) { const expectedGraph = expectedStructuredData.get(route.pathname); const expectedJsonLdCount = expectedGraph === undefined ? 0 : 1; assert.equal(scripts.length, expectedJsonLdCount, route.pathname); + if (expectedJsonLdCount === 1) { + assert.match( + html, + /