diff --git a/tests/frontend/portal-institutional-contact.test.mjs b/tests/frontend/portal-institutional-contact.test.mjs index ce5b5b85..7f2a0b32 100644 --- a/tests/frontend/portal-institutional-contact.test.mjs +++ b/tests/frontend/portal-institutional-contact.test.mjs @@ -40,6 +40,8 @@ test('footer identifies the decided operator without implying a public partnersh assert.match(html, /Operado por.*Tempo, Lda\./s); assert.match(html, /mailto:institution@example.invalid/); assert.doesNotMatch(html, /parceria com a APIEX/); + // Decisão do proprietário (01/12/2026): o acesso a «Contacto» está no rodapé, não no cabeçalho. + assert.match(html, /]*href="\/contacto"[^>]*>[\s\S]*?Contacto/); }); test('support distinguishes the existing institutional contact from dedicated support', () => { diff --git a/tests/frontend/portal-six-group-menu.test.mjs b/tests/frontend/portal-six-group-menu.test.mjs index 1b11d6ad..d6ec4d02 100644 --- a/tests/frontend/portal-six-group-menu.test.mjs +++ b/tests/frontend/portal-six-group-menu.test.mjs @@ -101,7 +101,7 @@ compileFunction(output, ['require', 'module', 'exports'])( module, module.exports, ); -test('actual header has exactly the requested six primary entries on desktop and mobile for public and signed-in users', () => { +test('actual header has exactly the requested primary entries, with Revista Tempo before Mais, on desktop and mobile for public and signed-in users', () => { const out = new URL( '../../outputs/funding-uniform-menu-20261111/', import.meta.url, @@ -143,18 +143,26 @@ test('actual header has exactly the requested six primary entries on desktop and 'Realização', 'Suporte', 'Sobre nós', + 'Revista Tempo', 'Mais', ]); + // Decisão do proprietário (01/12/2026): a Revista Tempo é entrada principal do cabeçalho. + assert.ok( + /]*href="https:\/\/revista\.tempo\.co\.mz\/"[^>]*target="_blank"[^>]*rel="noopener noreferrer"/.test( + nav, + ), + ); for (const href of [ '/concursos', '/fundos', '/documentos', '/legislacao', '/sobre', - '/contacto', '/acesso-gestao', ]) assert.ok(html.includes('href="' + href + '"'), href); + // Decisão do proprietário (01/12/2026): «Contacto» fica só no rodapé. + assert.equal(nav.includes('href="/contacto"'), false); assert.ok(html.includes('step=S08')); assert.equal(html.includes('/management/'), false); fs.writeFileSync( @@ -179,6 +187,7 @@ test('actual header has exactly the requested six primary entries on desktop and 'Realização', 'Suporte', 'Sobre nós', + 'Revista Tempo', 'Mais', ], actualHeaderRendered: true, @@ -200,7 +209,7 @@ test('authorised administration is primary and dashboard is a nested expandable const nav = html.match(/]*aria-label="Áreas do portal"[\s\S]*?<\/nav>/)?.[0]; assert.ok(nav); const labels = [...nav.matchAll(/<(?:a|button)[^>]*class="tempo-nav-trigger"[^>]*>([\s\S]*?)<\/(?:a|button)>/g)].map(m => m[1].replace(/<[^>]*>/g, '').replace('Grupo actual', '').trim()); - assert.deepEqual(labels, ['Início', 'Descoberta', 'Realização', 'Suporte', 'Administração', 'Sobre nós', 'Mais']); + assert.deepEqual(labels, ['Início', 'Descoberta', 'Realização', 'Suporte', 'Administração', 'Sobre nós', 'Revista Tempo', 'Mais']); assert.equal((nav.match(/href="\/management\/editorial"/g) ?? []).length, 1); assert.match(nav, /Dashboard/); if (mobile) assert.match(nav, /]*>Dashboard<\/summary>/);