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:
snomiao
2025-10-11 08:52:49 +00:00
parent e7e8c674b3
commit 8564c0b4bf
2 changed files with 5 additions and 1 deletions

View File

@@ -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()