Add human-factor to undo test

This commit is contained in:
filtered
2024-11-09 14:23:01 +11:00
parent da3702352c
commit ab0ddc09a2

View File

@@ -72,9 +72,15 @@ test.describe('Change Tracker', () => {
)
await expect(comfyPage.canvas).toHaveScreenshot('undo-step3.png')
// Test what a real person does
comfyPage.ctrlZ()
comfyPage.ctrlZ()
comfyPage.ctrlZ()
comfyPage.ctrlZ()
await expect(comfyPage.canvas).toHaveScreenshot('undo-initial-state.png')
// Test past the bounds of the buffer
comfyPage.ctrlY()
comfyPage.ctrlY()
await expect(comfyPage.canvas).toHaveScreenshot('undo-step3.png')
})