feat(ui): redisenar catalogo y filtros UX-06C
This commit is contained in:
@@ -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) }] });
|
||||
|
||||
Reference in New Issue
Block a user