mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 05:00:03 +00:00
fix: improve error handling in Playwright tests
- Remove unnecessary .catch(() => {}) in userSelectView test that was
hiding potential failures
- Add explanatory comments for legitimate .catch(() => {}) usage in
cleanup blocks of linkInteraction tests
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ test.describe('User Select View', () => {
|
||||
|
||||
// Try to click first option if it exists
|
||||
const firstOption = page.locator('.p-select-list .p-select-option').first()
|
||||
await firstOption.waitFor({ state: 'visible' }).catch(() => {})
|
||||
await firstOption.waitFor({ state: 'visible', timeout: 5000 })
|
||||
|
||||
if ((await firstOption.count()) > 0) {
|
||||
await firstOption.click()
|
||||
|
||||
Reference in New Issue
Block a user