Gobernanza: Analizar EEG leads to Estudios EEG, which hosts the single-study evaluation; the timeline is only a dotted line; the probability curve and the age-norm bands are drawn from the model and the centiles

This commit is contained in:
2026-12-01 18:25:08 -06:00
parent f7eb170e15
commit 98eda5bc28
14 changed files with 187 additions and 141 deletions
+5 -10
View File
@@ -225,7 +225,7 @@ test('tea complete child: every screen has data', async ({ page }) => {
.filter({ hasText: /^tea\./ })
.first(),
).toBeVisible();
await models.getByRole('button', { name: 'Evaluar un solo estudio' }).click();
await studies.getByRole('button', { name: 'Evaluar un solo estudio' }).click();
const preview = page.locator('app-eeg-preview');
await expect(preview.getByLabel('EDF')).toBeAttached();
await expect(preview.getByLabel('ADOS-2 (PDF)')).toBeAttached();
@@ -319,13 +319,9 @@ test('tea gobernanza: every section in sync mode, and the preview saved as PDF',
await expect(folder).toBeHidden();
await expect(line).toBeHidden();
const monitor = page.locator('app-governance-models app-run-monitor');
await expect(page.getByRole('button', { name: 'Calcular riesgos' })).toHaveCount(0);
await page.getByRole('button', { name: 'Analizar EEG' }).click();
await expect(page.getByRole('heading', { name: 'Análisis de EEG' })).toBeVisible();
await expect(monitor.getByRole('status')).toHaveText('SUCCESS', { timeout: 10 * 60_000 });
await page.getByRole('button', { name: 'Calcular riesgos' }).click();
await expect(page.getByRole('heading', { name: 'Cálculo de riesgos' })).toBeVisible();
await expect(monitor.getByRole('status')).toHaveText('SUCCESS', { timeout: 10 * 60_000 });
await expect(page.getByRole('heading', { name: 'Estudios EEG', level: 2 })).toBeFocused();
await page.getByRole('button', { name: 'Promover candidatas' }).click();
await expect(page.getByText('No hay candidatas que se puedan promover.')).toBeVisible();
@@ -340,9 +336,8 @@ test('tea gobernanza: every section in sync mode, and the preview saved as PDF',
{ timeout: 10 * 60_000 },
);
const models = page.getByRole('region', { name: 'Modelos' });
const toggle = models.getByRole('button', { name: 'Evaluar un solo estudio' });
const preview = models.locator('.button-row + app-eeg-preview');
const toggle = studies.getByRole('button', { name: 'Evaluar un solo estudio' });
const preview = studies.locator('app-eeg-preview');
const edf = preview.getByRole('button', { name: 'EDF', exact: true });
const ados = preview.getByRole('button', { name: 'ADOS-2 (PDF)', exact: true });
const birth = preview.getByLabel('Fecha de nacimiento');