mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 17:24:07 +00:00
[lint] Fix floating promises in browser_tests
- Fix floating promises in browser_tests/tests/remoteWidgets.spec.ts - Fix floating promises in browser_tests/fixtures/ComfyPage.ts (4 methods) - Fix floating promises in browser_tests/fixtures/components/SidebarTab.ts All async functions now properly await their page.evaluate() calls to prevent floating promises. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -37,8 +37,8 @@ test.describe('Remote COMBO Widget', () => {
|
||||
}, nodeName)
|
||||
}
|
||||
|
||||
const clickRefreshButton = (comfyPage: ComfyPage, nodeName: string) => {
|
||||
return comfyPage.page.evaluate((name) => {
|
||||
const clickRefreshButton = async (comfyPage: ComfyPage, nodeName: string) => {
|
||||
return await comfyPage.page.evaluate((name) => {
|
||||
const node = window['app'].graph.nodes.find((node) => node.title === name)
|
||||
const buttonWidget = node.widgets.find((w) => w.name === 'refresh')
|
||||
return buttonWidget?.callback()
|
||||
|
||||
Reference in New Issue
Block a user