Merge dashboard-test: the CaMa dashboard's presentation over the FHIR measures, with TEA's history and summary kept

This commit is contained in:
Roberto Treviño Cervantes
2026-11-15 05:37:15 -06:00
133 changed files with 9936 additions and 290 deletions
@@ -114,7 +114,7 @@ describe('UX-06E.D.3.A catálogo permanentemente desplegado', () => {
it('Resumen omite los indicadores publicados solo para otra pestaña', () => {
load([item, { ...second, vistas: ['historico'] }]);
expect(page.searchResults().items.map(i => i.id)).toEqual([item.id]);
expect(fixture.nativeElement.querySelector('.catalog-count').textContent).toContain('1 indicadores');
expect(fixture.nativeElement.querySelector('.catalog-count').textContent).toContain('1 indicador publicado');
expect(page.catalog()).toHaveLength(2);
http.expectNone(r => r.url.endsWith('/figuras/f1'));
});
@@ -135,14 +135,11 @@ describe('UX-06E.D.3.A catálogo permanentemente desplegado', () => {
expect(fixture.nativeElement.querySelector('.pin-toggle').getAttribute('aria-label')).toContain(title);
http.expectNone(() => true);
});
it('UX-06B mantiene una sola navegación entre dominios, sin duplicar botones', () => {
// Our shell has no domain selector of its own (unlike upstream's App),
// so the page keeps exactly the one it always had -- not duplicated.
// (Needs a render pass first: unlike upstream's trivial "absent" check,
// confirming presence requires the template to have actually painted.)
it('UX-06B la navegación entre dominios es la del encabezado: la página no la duplica', () => {
// The selector is in the shell's header (app-encabezado.spec.ts); a second set of buttons on the page would duplicate it.
fixture.detectChanges();
expect(fixture.nativeElement.querySelectorAll('nav.domain-nav')).toHaveLength(1);
expect(fixture.nativeElement.querySelectorAll('nav.domain-nav a')).toHaveLength(3);
expect(fixture.nativeElement.querySelectorAll('nav.domain-nav')).toHaveLength(0);
expect(fixture.nativeElement.querySelectorAll('a[href^="/indicadores/"]')).toHaveLength(0);
expect(cards()).toHaveLength(0);
// Constructing the page legitimately initializes its domain catalog.
const catalogRequest = http.expectOne('/tea/indicadores');