Repository navigation
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
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! |
The spec used sample_data.ecommerce_db.shopify.fact_sale as its "unconfigured" fixture. 6e5bc80 (#30367) added a native test suite for that table, so the data quality and observability rows now render status badges instead of setup CTAs and their testids no longer exist. Create both fixtures over the API in beforeAll instead, reuse TableClass.visitEntityPage in place of the hand-rolled page.goto helper, and assert the badge branch of the data quality row, which nothing covered before. Co-Authored-By: Claude <noreply@anthropic.com>
a1ec943 to
86f274f
Compare
✅ Playwright Results — workflow succeededValidated commit ✅ 52 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 3 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 40m 38s ⏱️ Max setup 1m 31s · max shard execution 6m 4s · max shard-job elapsed before upload 9m 41s · reporting 3s 🌐 137.08 requests/attempt · 1.37 app boots/UI scenario · 0.00% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ ApprovedAsset Health widget E2E spec now seeds its own test and empty tables rather than relying on shared sample data, preventing breakage from upstream test suite additions. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
Fixes three Asset Health widget specs failing on
main(run 30482475429):Why
The spec used
sample_data.ecommerce_db.shopify.fact_saleas its "no test suite, no contract" fixture.6e5bc803a8(#30367) addedfact_sale.testSuitetoingestion/examples/sample_data/tests/testSuites.json, and both failing rows are gated on the table's test suite:asset-health-cta-dataQuality!hasTests || summary.total === 0asset-health-cta-dataObservability!hasTestsAssetHealthRowItemrenders either the CTA<button>or a<Badge>, never both — so the testids stopped existing. Deterministic, not flaky.What changed
beforeAlland deletes them inafterAll, so sample-data drift can't break it again. Re-pointing the constant at another sample table would only reset the timer — that commit took three tables out of eligibility at once.visitTablehelper for the existingTableClass.visitEntityPage(page), which addsencodeURIComponentand awaitForResponseon the table's own fetch, and stays off the search-box path (which would time out on a freshly created, unindexed table).Verification
Ran against a local stack built from this branch (
system/versionrevision matchedgit rev-parse HEAD):Temporarily giving the "empty" table a test case reproduced the CI failure on the same testids, confirming the assertions discriminate.
eslint,prettier,organize-importsandtscclean; no services left behind after the run.Test-only change — no UI recording applies.
🤖 Generated with Claude Code
Greptile Summary
This PR makes the Asset Health widget E2E suite independent of mutable sample data.
Confidence Score: 4/5
The PR should not merge until teardown guarantees that every generated fixture is removed even when an earlier deletion fails.
The first rejected fixture deletion still prevents the second deletion and final cleanup from running, which can leave generated backend state that interferes with later E2E execution.
Files Needing Attention: openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AssetHealthWidget.spec.ts
Important Files Changed
Reviews (2): Last reviewed commit: "fix(ui): make the Asset Health widget E2..." | Re-trigger Greptile