From 782d93a7a0422d4a3133291a309ae4d44cecfbcd Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:28:48 +1100 Subject: [PATCH] Add awaits to various tests --- browser_tests/dialog.spec.ts | 2 +- browser_tests/fixtures/ComfyPage.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser_tests/dialog.spec.ts b/browser_tests/dialog.spec.ts index 28f101ede..4d790f8f5 100644 --- a/browser_tests/dialog.spec.ts +++ b/browser_tests/dialog.spec.ts @@ -94,7 +94,7 @@ test.describe('Settings', () => { test('Can change canvas zoom speed setting', async ({ comfyPage }) => { const maxSpeed = 2.5 await comfyPage.setSetting('Comfy.Graph.ZoomSpeed', maxSpeed) - test.step('Setting should persist', async () => { + await test.step('Setting should persist', async () => { expect(await comfyPage.getSetting('Comfy.Graph.ZoomSpeed')).toBe(maxSpeed) }) }) diff --git a/browser_tests/fixtures/ComfyPage.ts b/browser_tests/fixtures/ComfyPage.ts index d20eff3eb..65df4b91e 100644 --- a/browser_tests/fixtures/ComfyPage.ts +++ b/browser_tests/fixtures/ComfyPage.ts @@ -617,7 +617,7 @@ export class ComfyPage { y: 625 } }) - this.page.mouse.move(10, 10) + await this.page.mouse.move(10, 10) await this.nextFrame() } @@ -629,7 +629,7 @@ export class ComfyPage { }, button: 'right' }) - this.page.mouse.move(10, 10) + await this.page.mouse.move(10, 10) await this.nextFrame() }