Quick Command remembers the mode and workers (#31)
CI / Lint (eslint) (pull_request) Successful in 23s
CI / Test (jest) (pull_request) Successful in 23s
CI / Security (npm audit) (pull_request) Successful in 10s
CI / Integration (api) (pull_request) Successful in 2m40s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m51s
CI / UI (playwright) (pull_request) Successful in 4m32s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 4m43s

The mode (single or multi), the single worker and the multi-worker
selection are saved in localStorage (pulse_qc_prefs): the mode when it
changes, the workers when a command is sent. A reload starts from that
choice instead of the first worker; a Re-run from Executions still
overrides it. The Ctrl+Enter hint and shortcut already existed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-23 14:19:02 -05:00
1 parent 09a9d69102
commit 5d1cdf9da0
2 files changed
+54 -3

No files matched your search

+28
View File
@@ -80,3 +80,31 @@ test('searching Executions finds a run by its command (#16)', async ({ page, req
await expect(rows).toHaveCount(1);
await expect(rows.first()).toHaveAttribute('data-execution-id', id);
});
test('Quick Command remembers the mode and workers after a reload (#31)', async ({ page }) => {
await page.goto('/quick');
await page.locator('#qc-mode-multi').check();
const boxes = page.locator('#qc-worker-list label');
await boxes.filter({ hasText: 'node-02' }).locator('input').check();
await boxes.filter({ hasText: 'node-03' }).locator('input').check();
await page.locator('#qc-command').fill('true');
await page.locator('#qc-execute-btn').click();
await expect(page.locator('#qc-result')).toContainText(/2/);
await page.reload();
await expect(page.locator('#qc-mode-multi')).toBeChecked();
await expect(boxes.filter({ hasText: 'node-02' }).locator('input')).toBeChecked();
await expect(boxes.filter({ hasText: 'node-03' }).locator('input')).toBeChecked();
await expect(boxes.filter({ hasText: 'node-01' }).locator('input')).not.toBeChecked();
// Single mode remembers its worker too.
await page.locator('#qc-mode-single').check();
const node3 = await page.locator('#qc-worker option', { hasText: 'node-03' }).getAttribute('value');
await page.locator('#qc-worker').selectOption(node3);
await page.locator('#qc-command').fill('true'); // the reload emptied it
await page.locator('#qc-execute-btn').click();
await expect(page.locator('#qc-result')).toContainText('Command sent successfully');
await page.reload();
await expect(page.locator('#qc-mode-single')).toBeChecked();
await expect(page.locator('#qc-worker option:checked')).toContainText('node-03');
});