feat(ui): redisenar catalogo y filtros UX-06C

This commit is contained in:
Angel Capetillo Zavala
2026-10-13 12:34:03 -06:00
parent ecf2778f1a
commit 41be0c343f
11 changed files with 195 additions and 33 deletions
@@ -17,8 +17,9 @@ describe('UX-05B ciclo de vida con componentes Plotly y runtime simulado', () =>
vi.resetAllMocks(); disconnects.length = 0;
runtime.react.mockResolvedValue(undefined); runtime.Plots.resize.mockResolvedValue(undefined);
vi.stubGlobal('ResizeObserver', class {
disconnect = vi.fn(); observe = vi.fn();
constructor() { disconnects.push(this.disconnect); }
disconnect = vi.fn(); unobserve = vi.fn();
// Material outline labels also observe size; track only Plotly hosts here.
observe = vi.fn((target: Element) => { if (target.classList.contains('plot')) disconnects.push(this.disconnect); });
});
TestBed.configureTestingModule({ imports: [IndicadoresPage], providers: [provideRouter([]), provideHttpClient(), provideHttpClientTesting(),
{ provide: PLOTLY_LOADER, useValue: () => Promise.resolve(runtime) }] });