mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
test: add pixel ratio tolerance for image preview screenshot
Sub-pixel rendering differences from TransformPane's two-layer transform decomposition cause ~1% pixel variance across CI runs.
This commit is contained in:
@@ -204,7 +204,8 @@ test.describe('Image widget', { tag: ['@screenshot', '@widget'] }, () => {
|
||||
|
||||
// Expect the image preview to change automatically
|
||||
await expect(comfyPage.canvas).toHaveScreenshot(
|
||||
'image_preview_drag_and_dropped.png'
|
||||
'image_preview_drag_and_dropped.png',
|
||||
{ maxDiffPixelRatio: 0.02 }
|
||||
)
|
||||
|
||||
// Expect the filename combo value to be updated
|
||||
|
||||
Reference in New Issue
Block a user