Scope queue count UI assertions
Test, build, and deploy ComfyUI Jobs / test-build (push) Successful in 4m59s
Test, build, and deploy ComfyUI Jobs / deploy (push) Successful in 15s
Test, build, and deploy ComfyUI Jobs / browser-test (push) Successful in 1m48s
Test, build, and deploy ComfyUI Jobs / qa-gate (push) Successful in 5s

This commit is contained in:
2026-10-26 21:36:35 +00:00
parent fd5c0a7645
commit 3dbc7518ba
+5 -3
View File
@@ -382,9 +382,11 @@ test.describe('ComfyUI Portal read-only UI states', () => {
const server = { ...connectedServer, queue: { running: 1, pending: 3, total: 4 } };
await mockReadOnlyApi(page, { server });
await page.goto('/jobs');
await expect(page.getByText('4', { exact: true })).toBeVisible();
await expect(page.getByText('3', { exact: true })).toBeVisible();
await expect(page.getByText('1', { exact: true })).toBeVisible();
const counts = page.locator('.queue-panel strong');
await expect(counts).toHaveCount(3);
await expect(counts.nth(0)).toHaveText('4');
await expect(counts.nth(1)).toHaveText('1');
await expect(counts.nth(2)).toHaveText('3');
});
test('reports a mocked Manager rejection without leaving controls stuck', async ({ page }) => {