Merge parity/F1g
This commit is contained in:
@@ -126,6 +126,17 @@ test('tea patient: the record and the risk page load and export to PDF', async (
|
||||
expect(await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf')).toMatch(
|
||||
/^tea-riesgos-/,
|
||||
);
|
||||
await page.goto('/indicadores/tea');
|
||||
await page.getByRole('tab', { name: 'Análisis de riesgo' }).click();
|
||||
const riskList = page.locator('app-tab-riesgos-tea table.worklist');
|
||||
const patientLink = riskList.getByRole('row').nth(1).getByRole('link');
|
||||
await expect(patientLink).toHaveAttribute(
|
||||
'href',
|
||||
/\/indicadores\/tea\/pacientes\/[^/]+\/riesgo$/,
|
||||
);
|
||||
await patientLink.click();
|
||||
await expect(page).toHaveURL(/\/indicadores\/tea\/pacientes\/[^/]+\/riesgo$/);
|
||||
await expect(page.getByRole('heading', { name: 'Análisis de riesgo TEA' })).toBeVisible();
|
||||
expect(problems).toEqual([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user