mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Fix undo-redo expectations
This commit is contained in:
@@ -64,7 +64,7 @@ test.describe('Change Tracker', () => {
|
|||||||
await expect(comfyPage.canvas).toHaveScreenshot('undo-step1.png')
|
await expect(comfyPage.canvas).toHaveScreenshot('undo-step1.png')
|
||||||
|
|
||||||
comfyPage.ctrlZ()
|
comfyPage.ctrlZ()
|
||||||
await expect(comfyPage.canvas).toHaveScreenshot('undo-step2.png')
|
await expect(comfyPage.canvas).toHaveScreenshot('undo-initial-state.png')
|
||||||
|
|
||||||
comfyPage.dragAndDrop(
|
comfyPage.dragAndDrop(
|
||||||
comfyPage.clipTextEncodeNode1OutputSlot,
|
comfyPage.clipTextEncodeNode1OutputSlot,
|
||||||
@@ -73,7 +73,10 @@ test.describe('Change Tracker', () => {
|
|||||||
await expect(comfyPage.canvas).toHaveScreenshot('undo-step3.png')
|
await expect(comfyPage.canvas).toHaveScreenshot('undo-step3.png')
|
||||||
|
|
||||||
comfyPage.ctrlZ()
|
comfyPage.ctrlZ()
|
||||||
await expect(comfyPage.canvas).toHaveScreenshot('undo-step4.png')
|
await expect(comfyPage.canvas).toHaveScreenshot('undo-initial-state.png')
|
||||||
|
|
||||||
|
comfyPage.ctrlY()
|
||||||
|
await expect(comfyPage.canvas).toHaveScreenshot('undo-step3.png')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('Can group multiple change actions into a single transaction', async ({
|
test('Can group multiple change actions into a single transaction', async ({
|
||||||
|
|||||||
Reference in New Issue
Block a user