Port TEA and CaCu section 1 adjustments onto the Histórico integration
TEA: Indicadores tab, opportunity summary with real contract values, ordered opportunity and clinical figures, «No aceptable» label for the EEG quality. CaCu: renamed lab-result KPI, six time figures under «Tiempo de tamizaje a diagnóstico», clinical figures with the pending «Progresión por grupo de riesgo». CaCu's colposcopy and biopsy times use the measures the screening route publishes and leave them to the route chart while it is shown.
This commit is contained in:
@@ -33,14 +33,14 @@ describe('Secciones compartidas por dominio', () => {
|
||||
});
|
||||
afterEach(() => { http.verify(); vi.restoreAllMocks(); vi.unstubAllGlobals(); limpiarSesionVisual(); });
|
||||
|
||||
it.each(DOMINIOS)('entrada directa en %s presenta sus pestañas y Resumen seleccionado', async domain => {
|
||||
it.each(DOMINIOS)('entrada directa en %s presenta sus pestañas e Indicadores seleccionado', async domain => {
|
||||
const harness = await RouterTestingHarness.create();
|
||||
const page = await harness.navigateByUrl('/indicadores/' + domain, IndicadoresPage);
|
||||
http.expectOne('/' + domain + '/indicadores').flush(catalog); harness.detectChanges();
|
||||
const root = harness.routeNativeElement!;
|
||||
const tabs = Array.from(root.querySelectorAll<HTMLButtonElement>('[role="tab"]'));
|
||||
// TEA, CaMa and CaCu have Histórico; the follow-up tab is named Análisis de riesgos in every domain.
|
||||
const esperadas = ['Resumen', 'Histórico', 'Análisis de riesgos', 'Datos y definiciones'];
|
||||
const esperadas = ['Indicadores', 'Histórico', 'Análisis de riesgos', 'Datos y definiciones'];
|
||||
expect(tabs.map(t => t.textContent?.trim())).toEqual(esperadas);
|
||||
expect(tabs.map(t => t.getAttribute('aria-selected'))).toEqual(esperadas.map((_, i) => String(i === 0)));
|
||||
const tab = (id: string) => tabs.find(t => t.id === 'tab-' + id)!;
|
||||
@@ -75,7 +75,7 @@ describe('Secciones compartidas por dominio', () => {
|
||||
http.expectNone(() => true); // No patient, metadata, catalog or figure requests on section changes.
|
||||
});
|
||||
|
||||
it('cambiar de dominio reinicia Resumen tanto por router como por coordinación de página', async () => {
|
||||
it('cambiar de dominio reinicia Indicadores tanto por router como por coordinación de página', async () => {
|
||||
const harness = await RouterTestingHarness.create();
|
||||
for (const domain of DOMINIOS) {
|
||||
const page = await harness.navigateByUrl('/indicadores/' + domain, IndicadoresPage);
|
||||
|
||||
Reference in New Issue
Block a user