diff --git a/e2e/pages.spec.ts b/e2e/pages.spec.ts index ac89596..dd34e84 100644 --- a/e2e/pages.spec.ts +++ b/e2e/pages.spec.ts @@ -379,9 +379,13 @@ test('tea gobernanza: every section in sync mode, and the preview saved as PDF', const bundles = page.locator('app-governance-bundles'); 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('holds a study code, date or path'); - expect(problems.filter((p) => !/409|422/.test(p))).toEqual([]); + const [bundle] = await Promise.all([ + page.waitForEvent('download'), + bundles.getByRole('button', { name: 'Exportar bundle' }).click(), + ]); + expect(bundle.suggestedFilename()).toMatch(/^tea-models-[0-9a-f]{12}\.zip$/); + await expect(bundles.locator('code')).toHaveText(/^[0-9a-f]{64}$/); + expect(problems).toEqual([]); }); test('conectar: the tea pipeline on the canvas, and a node form', async ({ page }) => {