Skip to content

fix(e2e): improve Monaco editor handling and fallback#3331

Draft
Baluduvamsi2006 wants to merge 2 commits intoapache:masterfrom
Baluduvamsi2006:pr/3-monaco-editor
Draft

fix(e2e): improve Monaco editor handling and fallback#3331
Baluduvamsi2006 wants to merge 2 commits intoapache:masterfrom
Baluduvamsi2006:pr/3-monaco-editor

Conversation

@Baluduvamsi2006
Copy link
Copy Markdown
Contributor

Adds proper Monaco editor detection and graceful fallback for test scenarios

…t pages

This commit consolidates all changes from the refactor/resource-list-page branch:
- Introduces ResourceListPage component to reduce code duplication across list pages
- Standardizes pagination, sorting, and filtering behavior across all resource lists
- Fixes React infinite re-render loops by using stable query results
- Improves E2E test reliability with dynamic polling instead of hardcoded waits
- Removes unused imports and fixes TypeScript/ESLint warnings
- Adds proper integer validation for pagination parameters
- Improves error handling in upstream deletion with 400 status code tolerance
- Increase test timeout to 120s for comprehensive upstream->service->route test
- Add explicit page.waitForLoadState() calls after navigation
- Add scrollIntoViewIfNeeded() before clicking row buttons
- Add explicit timeouts to expect() calls for better debugging
- Wrap row element selection to avoid multiple chained locator calls
@Baoyuantop
Copy link
Copy Markdown
Contributor

Thanks for the contribution!

This PR is doing too many things at once (57 files, 5+ independent concerns), which makes it hard to review safely. I'd suggest splitting it:

  1. ResourceListPage abstraction — new component + route file refactoring
  2. E2E test isolationuniquePrefix, targeted cleanup, Monaco helpers
  3. useTablePagination fix — explain what bug this addresses
  4. Other fixes@iconify/utils downgrade, pageSearch.ts change, etc. (each needs justification)

A few things to address regardless:

  • fullyParallel: !process.env.CI disables CI parallelism — fix root causes instead
  • Empty catch {} blocks (3 places) silently swallow errors
  • Hardcoded timeout: 30000 everywhere — use playwright.config.ts expect.timeout
  • page.waitForTimeout(500) is a known flakiness anti-pattern

Please split into focused PRs so we can review and merge incrementally.

@Baluduvamsi2006 Baluduvamsi2006 marked this pull request as draft March 17, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants