Conversation
| const customPropertiesResponsePromise = page.waitForResponse( | ||
| (response) => | ||
| response.url().includes('/api/v1/metadata/types/customProperties'), | ||
| { timeout: 180000 } |
There was a problem hiding this comment.
why we need timeout here?
| response.url().includes('entityType=') && | ||
| response.request().method() === 'GET' | ||
| response.request().method() === 'GET', | ||
| { timeout: 180000 } |
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AuditLogs.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce Playwright E2E flakiness around Audit Logs and pagination flows in the OpenMetadata UI test suite by making network waits and test data more deterministic/isolated.
Changes:
- Stabilized pagination navigation by coordinating the “next” click with the expected page-2 network response and ensuring the button is interactable.
- Increased Audit Logs polling/response wait timeouts and streamlined fallback audit-entry lookup logic.
- Improved pagination test isolation by using unique IDs for user test data and moving entity initialization into
beforeAll.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts | Makes pagination navigation less race-prone by synchronizing click + response and ensuring the next button is ready. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AuditLogs.spec.ts | Adds explicit API readiness checks and extends timeouts/polling to reduce Audit Log-related flakiness. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Pagination.spec.ts | Improves test isolation by using unique identifiers and initializing shared entities in beforeAll. |
🟡 Playwright Results — all passed (32 flaky)✅ 3593 passed · ❌ 0 failed · 🟡 32 flaky · ⏭️ 207 skipped
🟡 32 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ ApprovedFixes flakiness in AuditLog and Pagination components through targeted stability improvements. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



Describe your changes:
Fixes
I worked on ... because ...
Screen.Recording.2026-04-13.at.6.26.51.PM.mov
Screen.Recording.2026-04-13.at.7.15.53.PM.mov
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
testPaginationNavigationby usingPromise.all()to ensure response is captured before navigationuuid()for unique user creation to prevent test collisionsconstobject declarations toletintest.beforeAllhooks for proper initializationPOLL_TIMEOUTfrom 60000ms to 120000ms for slower test environmentsbeforeEachhook??)This will update automatically on new commits.