Skip to content

Fix Playwright waits on antd skeleton classes that no longer render - #36307

Merged
harsh-vador merged 5 commits into
mainfrom
fix/playwright-dead-skeleton-waits
Oct 27, 2026
Merged

harsh-vador merged 5 commits into
mainfrom
fix/playwright-dead-skeleton-waits

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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 the pr-checklist test-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, AuditLogList used the same data-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-list appears only once content (or an empty state) has loaded. The unit test asserts that loading does not render audit-log-list.
  • AuditLogs.spec.ts (10 waits) and navigateToAuditLogsPage: now wait for audit-log-list to be visible. fetchAuditLogs sets isLoading before it sends the request, so after the awaited response this passes only once the skeleton is gone, including for empty results.
  • Bulk-edit custom property editor (fillCustomPropertyDetails, fillExtensionDetails): a new waitForCustomPropertyEditorLoaded helper waits for custom-properties-widget, which CustomPropertyTable renders only after loading.
  • Deleted (9 waits): the next step already waits for loaded content.
    • CustomProperties.spec.ts ×5: openCustomPropertiesTab asserts custom-properties-card, which renders only after loading.
    • fillStoredProcedureCode: .fill() waits for the editor textbox.
    • ContextCenterPermission.spec.ts: a wait before navigation.
    • The task-count helper, whose wait was dead. That whole helper (checkTaskCountInActivityFeed) is also deleted: nothing in OpenMetadata or Collate calls it.
  • Impact map: the AuditLog Jest files now map to 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:

  • Bug fix

High-level design:

N/A — test-only fix plus one test-id split.

Tests:

Use cases covered

  • Audit Logs page: navigation, filters, search, pagination, export, and entity event verification all wait for the loaded list rather than a selector that matches nothing.
  • Bulk import of glossary terms with custom properties waits for the property editor to load before editing.

Unit tests

  • src/components/AuditLog/AuditLogList.test.tsx: the loading case now asserts audit-log-list-skeleton is present and audit-log-list is absent. 24/24 pass. With the test-id change reverted, the loading case fails, as it should.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Files updated: e2e/Pages/AuditLogs.spec.ts, e2e/Pages/CustomProperties.spec.ts, e2e/Features/ContextCenterPermission.spec.ts, utils/auditLogs.ts, utils/importUtils.ts, utils/task.ts.
  • Ran locally against a local 2.0.0-SNAPSHOT server on :8585, using this branch's UI on Vite :3100:
Spec Project Result
playwright/e2e/auth.setup.ts setup 1 passed
playwright/e2e/Pages/AuditLogs.spec.ts Basic 27 passed
playwright/e2e/Pages/GlossaryImportExport.spec.ts:140 (goes through fillExtensionDetails) chromium 1 passed

make playwright_affected selects 46 specs; the rest were not run locally. A full-suite Postgresql PR Playwright E2E Tests run on this branch is linked in a comment below.

Manual testing performed

  1. Ran CI's select_playwright_tests.py on this diff: targeted mode, 46 selectors, no unmapped files.
  2. yarn ui-checkstyle:changed and yarn 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:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — not applicable: test fix, descriptive title, skip-pr-checks.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — not applicable: test fix.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed — not applicable.
  • For a UI feature or feature task: Docker recording — not applicable (test fix).
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    Reviewed e4d5f682930 and a76676b03cc; HEAD cb1bbd77c28 is a76676b03cc plus the import cleanup ui-checkstyle made. 8292eb2696b then lowers the suppression count recorded in corpus.test.mjs from 538 to 536, to match the two suppressions the helper deletion removed; 29e4d34438f is 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.
  • Decision check: not needed — test-only change and a test-id split.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no blocking issues were found.

Summary

Replaces obsolete skeleton waits with checks for loaded content.

  • Audit-log tests wait until the loaded results appear.
  • Bulk-import edits wait for custom properties to load.
  • Playwright skips stale waits and the unused task-count helper.
  • Affected UI components select their matching Playwright specs.

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

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.
@harsh-vador
harsh-vador requested a review from a team as a code owner October 27, 2026 06:25
@harsh-vador harsh-vador added the skip-pr-checks Bypass PR metadata validation check label Oct 27, 2026
@github-actions github-actions Bot added the UI UI specific issues label Oct 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador

Copy link
Copy Markdown
Contributor Author

Full-suite Playwright run on this branch (workflow_dispatch, full_suite=true, head cb1bbd77c28): https://github.com/open-metadata/OpenMetadata/actions/runs/40461017122

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 994 → 996
- 2 added, 0 removed, 0 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/applications/AppScheduleEdit.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/platform-settings/search/FieldValueBoostFields.tsx

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador harsh-vador self-assigned this Oct 27, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Oct 27, 2026
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.
@gitar-bot

gitar-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown
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 audit-log-list and custom-properties-widget test ids, and splits the loading state of AuditLogList onto its own audit-log-skeleton test id. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.75% (131247/164573) 66.26% (46291/69860) 69.21% (26270/37953)

@harsh-vador
harsh-vador enabled auto-merge October 27, 2026 06:59
@sonarqubecloud

Copy link
Copy Markdown

@harsh-vador
harsh-vador added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 915457d Oct 27, 2026
86 checks passed
@harsh-vador
harsh-vador deleted the fix/playwright-dead-skeleton-waits branch October 27, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants