Empty states say what to do next (#33)
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Test (jest) (pull_request) Successful in 22s
CI / Security (npm audit) (pull_request) Successful in 10s
CI / Integration (api) (pull_request) Successful in 2m39s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m7s
CI / UI (playwright) (pull_request) Successful in 2m25s
CI / Deploy (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m23s
CI / Notify (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Test (jest) (pull_request) Successful in 22s
CI / Security (npm audit) (pull_request) Successful in 10s
CI / Integration (api) (pull_request) Successful in 2m39s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m7s
CI / UI (playwright) (pull_request) Successful in 2m25s
CI / Deploy (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m23s
CI / Notify (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
- Workers: what a worker is, the four settings it needs, and a link to the README's worker setup. - Scheduler: what a schedule does, a + New Schedule button, and a pointer to try the command in Quick Command first. - Workflows: links to the step reference and to Quick Command, under the existing Create button. - The "No workers available" pickers in Quick Command and the schedule form link to the Workers page. - UI test with stubbed empty lists checks each hint and action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5d2258f52
commit
d1ef6297ec
5 files changed
+37
-4
No files matched your search
@@ -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$/);
|
||||
});
|
||||
Reference in new issue
Block a user