mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Add awaits to various tests
This commit is contained in:
@@ -94,7 +94,7 @@ test.describe('Settings', () => {
|
|||||||
test('Can change canvas zoom speed setting', async ({ comfyPage }) => {
|
test('Can change canvas zoom speed setting', async ({ comfyPage }) => {
|
||||||
const maxSpeed = 2.5
|
const maxSpeed = 2.5
|
||||||
await comfyPage.setSetting('Comfy.Graph.ZoomSpeed', maxSpeed)
|
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)
|
expect(await comfyPage.getSetting('Comfy.Graph.ZoomSpeed')).toBe(maxSpeed)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -617,7 +617,7 @@ export class ComfyPage {
|
|||||||
y: 625
|
y: 625
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.page.mouse.move(10, 10)
|
await this.page.mouse.move(10, 10)
|
||||||
await this.nextFrame()
|
await this.nextFrame()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -629,7 +629,7 @@ export class ComfyPage {
|
|||||||
},
|
},
|
||||||
button: 'right'
|
button: 'right'
|
||||||
})
|
})
|
||||||
this.page.mouse.move(10, 10)
|
await this.page.mouse.move(10, 10)
|
||||||
await this.nextFrame()
|
await this.nextFrame()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user