Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions web/e2e/basic-process.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading