Merge pull request 'Empty states say what to do next' (#78) from empty-state-hints into main
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 35s
CI / Lint (eslint) (push) Successful in 37s
CI / Security (npm audit) (push) Successful in 15s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m49s
CI / Integration (api) (push) Successful in 2m39s
CI / UI (playwright) (push) Successful in 2m36s
CI / Deploy (push) Successful in 22s
CI / Deploy worker (push) Successful in 11s
CI / Notify (push) Successful in 3s

This commit was merged in pull request #78.
This commit is contained in:
jared committed 2026-11-23 14:18:39 -05:00
commit 09a9d69102
5 files changed
+37 -4

No files matched your search

+20
View File
@@ -74,3 +74,23 @@ test.describe('first visit in a session', () => {
await expect(page.locator('#lt-boot-text')).toContainText('ALL SYSTEMS NOMINAL: PULSE', { timeout: 15_000 });
});
});
test('empty states say what to do next (#33)', async ({ page }) => {
for (const path of ['/api/workers', '/api/scheduled-commands', '/api/workflows']) {
await page.route(u => u.pathname === path, r => r.fulfill({ json: [] }));
}
await page.goto('/workers');
await expect(page.locator('#wk-grid')).toContainText('WORKER_API_KEY');
await expect(page.getByRole('link', { name: 'Worker setup guide' })).toHaveAttribute('href', /#pulse-worker-setup$/);
await page.goto('/scheduler');
await page.locator('#sc-wrap').getByRole('button', { name: '+ New Schedule' }).click();
await expect(page.locator('#sc-create-modal')).toBeVisible();
await page.keyboard.press('Escape');
await page.goto('/quick');
await expect(page.locator('#qc-worker-list').getByRole('link', { name: 'Workers' })).toHaveAttribute('href', '/workers');
await page.goto('/workflows');
await expect(page.getByRole('link', { name: 'Step types and examples' })).toHaveAttribute('href', /#workflows$/);
});