Merge dev into the CaMa survival record change

This commit is contained in:
Roberto Treviño Cervantes
2026-11-23 00:09:57 -06:00
2 changed files with 3 additions and 2 deletions
@@ -36,7 +36,8 @@ describe('Seguimiento de CaMa: ficha del paciente', () => {
// Fails if the export buttons leave the title row or come back under the table.
it('has the export buttons in the row of the section title, and nothing after the pagination', () => {
const row = root().querySelector('.title-row')!;
expect(row.querySelector('h2')!.textContent).toContain('Seguimiento de');
// Fails if the section heading goes back to «Seguimiento de …» instead of the name of the section tab.
expect(row.querySelector('h2')!.textContent).toBe('Análisis de riesgos');
expect([...row.querySelectorAll('button')].map(b => b.textContent!.trim())).toEqual(['Exportar Excel (.xlsx)', 'Exportar PDF']);
expect(root().querySelector('nav')!.nextElementSibling).toBeNull();
expect(root().textContent).not.toContain('Exportar resultados');
@@ -48,7 +48,7 @@ const mismosFiltros = (a: Record<string, string | undefined>, b: Record<string,
}
<div [hidden]="!!ficha()">
<div class="title-row">
<h2>Seguimiento de {{ domainLabel }}</h2>
<h2>Análisis de riesgos</h2>
@if (data(); as respuesta) {
<app-seguimiento-exportar [dominio]="dominio" [respuesta]="respuesta" [habilitado]="estado() === 'ready' && !diferencia()" [seleccion]="etiquetaDatos()" />
}