T13: Gobernanza as one page with its sections in fixed places
Keep the route, title, subtitle, domain navigation and composition in
gobernanza.{ts,html,scss}. Ejecución keeps mode and health in execution.ts.
Add models.{ts,html,scss} to own the actions, run monitor, status, versions,
reports, figures, clinical validation, and checks and lineage dialogs.
Render training.ts after Modelos with the existing source, configuration,
promotion checkbox, input sets and upload. Keep ZIP export and import in
bundles.ts. Keep scope, study list, EDF upload and run progress in
tea/studies.{ts,html}, and render tea/preview.ts separately for TEA with
its EDF and ADOS-2 selection, results and PDF export.
Use a page grid for section spacing and the global card style. Keep
table, action and dialog styles local to Modelos. Use Material fields
for editable values and Material buttons to open native file pickers,
retaining input labels and showing the selected filenames. Keep the
native suggestion lists for scheduler and input set names.
Default the training target to all on domain changes. Both Modelos
training actions focus the Entrenamiento heading and use the same
Formly submit path. Use the existing shared start flag and version
refresh via the Modelos component. Reset the training promotion
checkbox on domain changes and the upload selection with its input
listing. Ignore training submissions that finish in a different domain.
Move gobernanza.spec.ts to models.spec.ts alongside checkActions.
Keep bundles, execution, training, run-monitor, figures and preview PDF
logic specs. Update e2e/pages.spec.ts for Material selections and
the Modelos monitor, and check section order and training focus.
Prettier 3.10.1 and git diff --cached --check passed. The main checkout
has no local Prettier installation, so use the available lockfile
version directly from the requested working directory. Angular builds,
unit tests and Playwright are deferred to the VM per the spec.
This commit is contained in:
+16
-4
@@ -88,14 +88,25 @@ test('tea gobernanza: every section in sync mode, and the preview saved as PDF',
|
||||
}) => {
|
||||
const problems = watch(page);
|
||||
await page.goto('/gobernanza/tea');
|
||||
await page.getByLabel('Modo').selectOption('sync');
|
||||
await expect(page.locator('app-gobernanza').getByRole('heading', { level: 2 })).toHaveText([
|
||||
'Ejecución',
|
||||
'Modelos',
|
||||
'Entrenamiento',
|
||||
'Bundles',
|
||||
'Estudios EEG',
|
||||
'Vista previa',
|
||||
]);
|
||||
await page.getByRole('combobox', { name: 'Modo' }).click();
|
||||
await page.getByRole('option', { name: 'Sync' }).click();
|
||||
await expect(page.getByRole('status').filter({ hasText: 'Disponible' })).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: 'Entrenar modelos' }).click();
|
||||
await expect(page.getByRole('heading', { name: 'Entrenar modelos', level: 3 })).toBeVisible();
|
||||
const training = page.getByRole('heading', { name: 'Entrenamiento', level: 2 });
|
||||
await expect(training).toBeVisible();
|
||||
await expect(training).toBeFocused();
|
||||
await expect(page.locator('app-governance-training formly-form')).toBeVisible();
|
||||
|
||||
const monitor = page.locator('app-gobernanza > section > section app-run-monitor');
|
||||
const monitor = page.locator('app-governance-models app-run-monitor');
|
||||
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 });
|
||||
@@ -131,7 +142,8 @@ test('tea gobernanza: every section in sync mode, and the preview saved as PDF',
|
||||
await dialog.getByRole('button', { name: 'Cerrar' }).click();
|
||||
|
||||
const bundles = page.locator('app-governance-bundles');
|
||||
await bundles.getByLabel('Versiones').selectOption('all');
|
||||
await bundles.getByRole('combobox', { name: 'Versiones' }).click();
|
||||
await page.getByRole('option', { name: 'Todas' }).click();
|
||||
await bundles.getByRole('button', { name: 'Exportar bundle' }).click();
|
||||
await expect(bundles.getByRole('alert')).toContainText('nothing to export');
|
||||
expect(problems.filter((p) => !p.includes('409'))).toEqual([]);
|
||||
|
||||
Reference in New Issue
Block a user