Repository navigation
Fix Playwright waits on antd skeleton classes that no longer render - #36307
Conversation
antd no longer renders, so every wait on .ant-skeleton* matched nothing and passed at once, letting tests race the real loader. The audit-log list also reused data-testid="audit-log-list" while loading, so waiting for the list passed during loading too. Give the audit-log loading state its own test id and wait for the loaded list; wait for the bulk-edit property list to load; drop the waits whose next step already waits for loaded content.
The generated map routes only the AuditLog components by testId, so a change to their Jest files was unmapped and escalated the run to the full suite.
No spec in OpenMetadata or Collate calls it, and its two positional locators were carried as eslint suppressions.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Full-suite Playwright run on this branch ( |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Deleting the unused task-count helper removed two suppressed no-positional-locator violations, so the baseline the corpus test pins drops from 538 to 536.
Code Review ✅ Approved🟢 Low risk · The changes replace inert Playwright waits and adjust a loading-state test ID; they affect test synchronization, not user-visible application behavior. Replaces dead antd skeleton Playwright waits with waits on the loaded VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Fixes Playwright waits on antd skeleton classes that no longer render (
.ant-skeleton,.ant-skeleton-content,.ant-skeleton-element,.ant-skeleton-active,.ant-skeleton-input). No test-fix issue is filed, per thepr-checklisttest-fix rule.antd no longer renders anywhere in the UI, so every one of these 21 waits matched nothing and passed immediately. Tests then raced the real loader. Separately,
AuditLogListused the samedata-testid="audit-log-list"while loading as when loaded, so waiting for the list to be visible also passed while the skeleton was still showing.AuditLogList: the loading state now has its own test id,audit-log-list-skeleton.audit-log-listappears only once content (or an empty state) has loaded. The unit test asserts that loading does not renderaudit-log-list.AuditLogs.spec.ts(10 waits) andnavigateToAuditLogsPage: now wait foraudit-log-listto be visible.fetchAuditLogssetsisLoadingbefore it sends the request, so after the awaited response this passes only once the skeleton is gone, including for empty results.fillCustomPropertyDetails,fillExtensionDetails): a newwaitForCustomPropertyEditorLoadedhelper waits forcustom-properties-widget, whichCustomPropertyTablerenders only after loading.CustomProperties.spec.ts×5:openCustomPropertiesTabassertscustom-properties-card, which renders only after loading.fillStoredProcedureCode:.fill()waits for the editor textbox.ContextCenterPermission.spec.ts: a wait before navigation.checkTaskCountInActivityFeed) is also deleted: nothing in OpenMetadata or Collate calls it.AuditLogs.spec.ts. The generated map routes only the components, so this diff would otherwise have escalated to a full-suite run.Type of change:
High-level design:
N/A — test-only fix plus one test-id split.
Tests:
Use cases covered
Unit tests
src/components/AuditLog/AuditLogList.test.tsx: the loading case now assertsaudit-log-list-skeletonis present andaudit-log-listis absent. 24/24 pass. With the test-id change reverted, the loading case fails, as it should.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
e2e/Pages/AuditLogs.spec.ts,e2e/Pages/CustomProperties.spec.ts,e2e/Features/ContextCenterPermission.spec.ts,utils/auditLogs.ts,utils/importUtils.ts,utils/task.ts.playwright/e2e/auth.setup.tsplaywright/e2e/Pages/AuditLogs.spec.tsplaywright/e2e/Pages/GlossaryImportExport.spec.ts:140(goes throughfillExtensionDetails)make playwright_affectedselects 46 specs; the rest were not run locally. A full-suitePostgresql PR Playwright E2E Testsrun on this branch is linked in a comment below.Manual testing performed
select_playwright_tests.pyon this diff:targetedmode, 46 selectors, no unmapped files.yarn ui-checkstyle:changedandyarn ui-checkstyle:playwright:changed: 0 errors, no changes.UI screen recording:
Not applicable — a test-only fix with no visible change; the only product change is a test id on the loading state.
Checklist:
Fixes <issue-number>: <short explanation>— not applicable: test fix, descriptive title,skip-pr-checks.Fixes #<issue-number>above — not applicable: test fix.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.Reviewed
e4d5f682930anda76676b03cc; HEADcb1bbd77c28isa76676b03ccplus the import cleanupui-checkstylemade.8292eb2696bthen lowers the suppression count recorded incorpus.test.mjsfrom 538 to 536, to match the two suppressions the helper deletion removed;29e4d34438fis the bot's impact-map refresh. No 🔴. Nits acted on: deleted the unused helper and dropped its now-unused import. The same dead waits in Collate (AskCollateUtils.ts,AskCollate.spec.ts,HybridRunnerPipelines.spec.ts) go in a Collate follow-up.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no blocking issues were found.Summary
Replaces obsolete skeleton waits with checks for loaded content.
No actionable new issues or repository-rule violations were found. Tests were not run during this review.
Reviews (2) · Last reviewed commit: "test(ui): lower the recorded positional-..." · Reviewed by Greptile