diff --git a/web/e2e/basic-process.spec.ts b/web/e2e/basic-process.spec.ts index 974eabe..8ec7298 100644 --- a/web/e2e/basic-process.spec.ts +++ b/web/e2e/basic-process.spec.ts @@ -9,12 +9,14 @@ test('runs approval automation through a durable reminder', async ({ page }) => await expect(processPanel).toBeVisible(); const flowId = await processPanel.getAttribute('data-flow-id'); expect(flowId).toBeTruthy(); + await expect(processPanel.locator('.status')).toHaveText('waiting for approval'); await expect.poll(() => { try { execFileSync('dexcli', ['flow', 'skip-timer', flowId!, '-server', process.env.DEX_FLOW_SERVICE_ADDRESS!, '-step-type', 'process.WaitForApproval', '-condition-id', 'approval-reminder', '-yes']); return true; } catch { return false; } }, { timeout: 20_000 }).toBe(true); + await expect(processPanel.locator('.status')).toHaveText('reminder emitted'); await expect(page.getByTestId('reminder-count')).toHaveText('1'); await page.getByRole('button', { name: 'Approve' }).click(); await expect(page.getByTestId('result')).toHaveText('approved automation completed');