mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user