From db8029291f598a7879ffc40ad4729e3a0cc29684 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 9 Dec 2025 01:33:02 -0800 Subject: [PATCH] Fix text expectation after digit shift change --- browser_tests/tests/queue/queueList.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/browser_tests/tests/queue/queueList.spec.ts b/browser_tests/tests/queue/queueList.spec.ts index 979fbcabd1..bdcb7a1888 100644 --- a/browser_tests/tests/queue/queueList.spec.ts +++ b/browser_tests/tests/queue/queueList.spec.ts @@ -62,15 +62,16 @@ test.describe('Queue UI', () => { }) => { await queue.sync(ws, { running: [], pending: [] }) - await expect(comfyPage.queueList.toggleButton).toBeVisible() - await expect(comfyPage.queueList.toggleButton).toHaveText(/0 queued/i) + await expect(comfyPage.queueList.toggleButton).toContainText('0') + await expect(comfyPage.queueList.toggleButton).toContainText(/queued/i) await expect(comfyPage.queueList.overlay).toBeHidden() await queue.sync(ws, { pending: [queueJob('1', 'mock-pending', 'client-a')] }) - await expect(comfyPage.queueList.toggleButton).toHaveText(/1 queued/i) + await expect(comfyPage.queueList.toggleButton).toContainText('1') + await expect(comfyPage.queueList.toggleButton).toContainText(/queued/i) await comfyPage.queueList.open() await expect(comfyPage.queueList.overlay).toBeVisible()