Fix text expectation after digit shift change

This commit is contained in:
Benjamin Lu
2025-12-09 01:33:02 -08:00
parent f6ffb1f7f0
commit db8029291f

View File

@@ -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()