feat(cama): add synthetic histopathology breakdown for demo

This commit is contained in:
Angel Capetillo Zavala
2026-11-19 19:06:32 -06:00
parent f6603ae76e
commit 56b3ac6b0c
19 changed files with 393 additions and 312 deletions
@@ -8,6 +8,7 @@ import { IndicadoresPage } from './indicadores-page';
import { IndicadorCatalogCard } from './indicador-catalog-card';
import { IndicadorFigurePanel } from './indicador-figure-panel';
import { IndicadoresMemory } from './indicadores-memory';
import { ID_HISTOPATOLOGIA_CAMA } from './indicadores-kpi';
import { Indicador } from './indicadores.models';
import { PlotlyChart } from '../../shared/plotly/plotly-chart';
import { PLOTLY_LOADER } from '../../shared/plotly/plotly-runtime';
@@ -83,7 +84,8 @@ describe('UX-06E.D.3.B fijación temporal', () => {
it('memoria independiente por dominio y persistente al recrear la página', async () => {
await pin('i3'); page.changeDominio('cacu'); load('cacu'); expect(ids()).toEqual(items.map(i => i.id));
// CaMa has no pin control (the mockup has none), so it neither keeps nor applies pins.
await pin('i1'); page.changeDominio('cama'); load('cama'); expect(ids()).toEqual(items.map(i => i.id));
// Its summary also leads with the histopathology card, which is not part of the catalog and cannot be pinned.
await pin('i1'); page.changeDominio('cama'); load('cama'); expect(ids()).toEqual([ID_HISTOPATOLOGIA_CAMA, ...items.map(i => i.id)]);
page.changeDominio('cacu'); load('cacu'); expect(ids()[0]).toBe('i1');
page.changeDominio('tea'); load(); expect(ids()[0]).toBe('i3');
fixture.destroy(); create(); load(); expect(ids()[0]).toBe('i3'); http.expectNone(() => true);