fix: address CI failures in delay-removal tests

- Toggle test (flaky): add nextFrame() after screenshot match to
  settle canvas before re-toggle click
- Dialog tests (failed): add force:true to canvas click inside
  toPass() to bypass actionability checks that hung on dialog
  overlay, and increase timeout to 5s
This commit is contained in:
Glary-Bot
2026-04-08 05:20:02 +00:00
parent 81c0a625f2
commit 78b0ec5efb

View File

@@ -335,6 +335,7 @@ test.describe('Node Interaction', () => {
await expect(comfyPage.canvas).toHaveScreenshot(
'text-encode-toggled-off.png'
)
await comfyPage.nextFrame()
await comfyPage.canvas.click({
position: DefaultGraphPositions.textEncodeNodeToggler
})
@@ -358,9 +359,12 @@ test.describe('Node Interaction', () => {
const legacyPrompt = comfyPage.page.locator('.graphdialog')
await expect(legacyPrompt).toBeVisible()
await expect(async () => {
await comfyPage.canvas.click({ position: { x: 10, y: 10 } })
await comfyPage.canvas.click({
position: { x: 10, y: 10 },
force: true
})
await expect(legacyPrompt).toBeHidden()
}).toPass({ timeout: 2_000 })
}).toPass({ timeout: 5_000 })
})
test('Can close prompt dialog with canvas click (text widget)', async ({
@@ -377,9 +381,12 @@ test.describe('Node Interaction', () => {
const legacyPrompt = comfyPage.page.locator('.graphdialog')
await expect(legacyPrompt).toBeVisible()
await expect(async () => {
await comfyPage.canvas.click({ position: { x: 10, y: 10 } })
await comfyPage.canvas.click({
position: { x: 10, y: 10 },
force: true
})
await expect(legacyPrompt).toBeHidden()
}).toPass({ timeout: 2_000 })
}).toPass({ timeout: 5_000 })
})
test(