T8: the record page test goes back through the frame's Regresar link
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ test('tea patient: the record and the risk page load and export to PDF', async (
|
|||||||
const record = await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf');
|
const record = await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf');
|
||||||
expect(record).toMatch(/^tea-seguimiento-/);
|
expect(record).toMatch(/^tea-seguimiento-/);
|
||||||
|
|
||||||
await page.getByRole('link', { name: 'Regresar a Seguimiento' }).click();
|
await page.getByRole('link', { name: 'Regresar' }).click();
|
||||||
const focused = page.locator('app-tab-seguimiento-tea');
|
const focused = page.locator('app-tab-seguimiento-tea');
|
||||||
await expect(focused.getByRole('button', { name: 'Ver todos los pacientes' })).toBeVisible();
|
await expect(focused.getByRole('button', { name: 'Ver todos los pacientes' })).toBeVisible();
|
||||||
const focusedRows = focused.locator('table tbody tr');
|
const focusedRows = focused.locator('table tbody tr');
|
||||||
|
|||||||
Reference in New Issue
Block a user