CaMa indicators and follow-up list, model governance page
This commit is contained in:
@@ -53,6 +53,13 @@ test("indicators: the KPIs are the API's MeasureReports, every tab and the patie
|
||||
).not.toContainText('Sin estudios');
|
||||
|
||||
await page.goto('/indicadores/cama');
|
||||
await expect(page.getByRole('tab', { name: 'Indicadores' })).toBeVisible();
|
||||
await page.getByRole('tab', { name: 'Seguimiento' }).click();
|
||||
await page.locator('mat-form-field', { hasText: 'Ventana' }).click();
|
||||
await page.getByRole('option', { name: '12 meses' }).click();
|
||||
const camaRows = page.locator('table.worklist tbody tr');
|
||||
await expect(camaRows.first()).toContainText('BI-RADS');
|
||||
await page.goto('/indicadores/tea');
|
||||
await expect(page.getByText('todavía no tiene indicadores')).toBeVisible();
|
||||
expect(problems).toEqual([]);
|
||||
});
|
||||
@@ -94,3 +101,18 @@ test('revision: what the messy site holds, and a decision through the page', asy
|
||||
await expect(page.getByText('Decisión registrada.')).toBeVisible();
|
||||
expect(problems).toEqual([]);
|
||||
});
|
||||
|
||||
test('gobernanza: a version with its reports, its curves, and promotion refused without validation', async ({
|
||||
page,
|
||||
}) => {
|
||||
const problems = watch(page);
|
||||
await page.goto('/gobernanza/cama');
|
||||
await expect(page.getByRole('heading', { name: 'survival' })).toBeVisible();
|
||||
const version = page.locator('tr', { hasText: 'v1' });
|
||||
await expect(version.getByRole('link', { name: 'Validación técnica' })).toBeVisible();
|
||||
await version.getByRole('button', { name: 'Ver gráficas' }).click();
|
||||
await expect(page.locator('app-plot .plot svg').first()).toBeVisible();
|
||||
await version.getByRole('button', { name: 'Promover' }).click();
|
||||
await expect(page.getByText('No se promovió')).toContainText('clinical_validation');
|
||||
expect(problems.filter((p) => !p.includes('409'))).toEqual([]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user