From f6003f1dcc44a609390b032e3a5f3b8320c230ef Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:56:29 +1100 Subject: [PATCH] Fix missed awaits --- browser_tests/changeTracker.spec.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/browser_tests/changeTracker.spec.ts b/browser_tests/changeTracker.spec.ts index 29f29376f..9752c56fa 100644 --- a/browser_tests/changeTracker.spec.ts +++ b/browser_tests/changeTracker.spec.ts @@ -54,34 +54,34 @@ test.describe('Change Tracker', () => { }) test('Can undo & redo user changes', async ({ comfyPage }) => { - comfyPage.clickEmptySpace() + await comfyPage.clickEmptySpace() await expect(comfyPage.canvas).toHaveScreenshot('undo-initial-state.png') - comfyPage.dragAndDrop( + await comfyPage.dragAndDrop( comfyPage.clipTextEncodeNode2OutputSlot, comfyPage.kSamplerTitlebar ) await expect(comfyPage.canvas).toHaveScreenshot('undo-step1.png') - comfyPage.ctrlZ() + await comfyPage.ctrlZ() await expect(comfyPage.canvas).toHaveScreenshot('undo-initial-state.png') - comfyPage.dragAndDrop( + await comfyPage.dragAndDrop( comfyPage.clipTextEncodeNode1OutputSlot, comfyPage.kSamplerTitlebar ) await expect(comfyPage.canvas).toHaveScreenshot('undo-step3.png') // Test what a real person does - comfyPage.ctrlZ() - comfyPage.ctrlZ() - comfyPage.ctrlZ() - comfyPage.ctrlZ() + await comfyPage.ctrlZ() + await comfyPage.ctrlZ() + await comfyPage.ctrlZ() + await comfyPage.ctrlZ() await expect(comfyPage.canvas).toHaveScreenshot('undo-initial-state.png') // Test past the bounds of the buffer - comfyPage.ctrlY() - comfyPage.ctrlY() + await comfyPage.ctrlY() + await comfyPage.ctrlY() await expect(comfyPage.canvas).toHaveScreenshot('undo-step3.png') })