[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:
snomiao
2025-09-10 05:16:54 +00:00
parent 1a25695392
commit e0153e72c2
3 changed files with 7 additions and 7 deletions

View File

@@ -237,7 +237,7 @@ export class QueueSidebarTab extends SidebarTab {
if (width < 0 || width > 100) {
throw new Error('Width must be between 0 and 100')
}
return this.page.evaluate((width) => {
return await this.page.evaluate((width) => {
localStorage.setItem('queue', JSON.stringify([width, 100 - width]))
}, width)
}