From 3dbc7518baf6394ae2ea581eb46e37b068c27cec Mon Sep 17 00:00:00 2001 From: "chris.dumas" Date: Mon, 26 Oct 2026 21:36:35 +0000 Subject: [PATCH] Scope queue count UI assertions --- e2e/portal.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/e2e/portal.spec.js b/e2e/portal.spec.js index d9f5920..57c8d08 100644 --- a/e2e/portal.spec.js +++ b/e2e/portal.spec.js @@ -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 }) => {