Chore(Ui): Fix flakiness in custom property playwrights#25733
Chore(Ui): Fix flakiness in custom property playwrights#25733aniketkatkar97 wants to merge 1 commit intomainfrom
Conversation
🔍 CI failure analysis for 8a6fd4a: 2nd retry failed with different unrelated error (NotificationAlerts browser crash). All custom property tests passed except 1 flaky (HTTP 500, pre-existing issue) that recovered on retry. Three runs show completely different failures, confirming infrastructure issues. This PR's improvements are working correctly.Summary2nd Retry Result: Job failed again with yet another different failure pattern. Custom property tests continue to pass consistently ✅ Issue (Run Attempt 3)Hard Failure: Errors:
Flaky Failures: 19 tests (increased from 13 in run 2, 12 in run 1) Custom Property Tests: 1 flaky test (passed on retry) ✅ Root CauseOngoing CI Infrastructure and Backend Instability The NotificationAlerts test failed with:
These are classic infrastructure failures, not code issues. Why This is Unrelated to This PR
Comparison Across All 3 Runs
Critical Observations:
Custom Property Test Flakiness Details (Run 3)Test 631: "Add Duration custom property for table"
This confirms:
Infrastructure Issues SummaryAcross all 3 runs (38+ flaky tests total):
Previous Runs ContextRun 1 (Original):
Run 2 (1st Retry):
ConclusionThis PR's Custom Property Improvements Are Working ✅:
CI Failures Are Environmental/Infrastructure Issues ❌:
The test reliability improvements in this PR are demonstrably effective. All failures are in unrelated tests or pre-existing backend issues, not introduced by this PR's changes. Code Review ✅ ApprovedClean, well-targeted test reliability fixes. The changes correctly address flaky test issues: replacing uuid with timestamp-based naming for ordering, adding proper Playwright API response waits before assertions, sequencing API calls to prevent server-side conflicts, and standardizing loader wait utilities. No bugs or concerns identified. Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|



This pull request updates the Playwright test suite for custom properties, focusing on improving test reliability and handling of custom property creation and advanced search scenarios. The most important changes include switching to timestamp-based property naming to avoid conflicts, updating API call handling for custom property creation, and improving page load synchronization in tests.
Test reliability improvements:
Replaced the use of
uuid()withDate.now()for generating custom property names in bothCustomproperties-part1.spec.tsandCustomproperties-part2.spec.tsto ensure unique names and prevent conflicts during parallel test execution. [1] [2] [3] [4] [5] [6] [7] [8]Removed the unused
uuidimport from test files after switching to timestamp-based naming. [1] [2]Advanced search and custom property creation enhancements:
CustomPropertyDetailsinterface to support custom property configs with column lists, enabling more flexible property definitions.Test synchronization and reliability improvements:
waitForAllLoadersToDisappearutility function for better reliability in entity panel navigation and summary panel opening. [1] [2] [3]