Repository navigation
[2.1] test(playwright): fix 2.1 AUT failures in Context Center, LineageSettings and MetricSearch - #37515
Conversation
…ings and MetricSearch - Context Center bulk move/delete/download: #37325 clears the selection when the search changes, so select both files from one search on a uuid their names share. - ContextCenterArchive lazy-load beforeAll: 18 uploads each wait up to 90s for extraction; give the hook a 3-minute budget. - LineageSettings: an upgraded instance stores no graphPerformanceConfig and the server fills defaults on write; compare against the seeded value. - MetricSearch: assert no error toast instead of any alert-bar, which catches other workers' success notifications.
❌ 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 |
Code Review ✅ Approved 🟡 Medium riskExtending the archive setup hook timeout to three minutes changes test execution and could tie up test workers longer if uploads stall. Test-only fixes for non-glossary nightly AUT failures in Context Center, LineageSettings, and MetricSearch specs. Document selection now uses a shared-term search, the archive lazy-load hook gets a longer timeout, the lineage config test compares against the stored setting, and the metric search check uses the error-only toast helper. No issues found. 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 |
ayush-shah
left a comment
There was a problem hiding this comment.
Reviewed at 7a30edf. No blocking findings. Focused Chromium selection and toast helper checks passed; full backend E2E was not run.
Describe your changes:
Fixes the non-glossary failures from the nightly AUT run 42933460302 (kind / mysql 1.11.13 ➡ 2.1). These are test-only fixes: the product behaves as intended, and the specs were stale or too strict.
ContextCenterDocumentbulk move + bulk delete,nightly/ContextCenterbulk download:'2 selected'not foundselectDocumentsBySharedTermhelper. Both files share one uuid in their names, the test searches for that uuid once, then ticks both rows.ContextCenterArchivelazy-load:beforeAllhook timeout (60s)waitForDocumentProcessingCompletewaits up to 90s for extraction. That wait alone exceeds the 60s hook budget.test.setTimeout(3 * 60 * 1000)inside thatbeforeAll.LineageSettings: "Saving the lineage config keeps the settings the form does not edit"graphPerformanceConfig. The test saved onlycacheTTLSeconds: 600, the server filled the other 13 schema defaults, and the exacttoEqualfailed.MetricSearchclause-explosion (flaky)getByTestId('alert-bar')matched other workers' success toasts (strict-mode violation).expectNoErrorToasthelper, which only looks at error toasts.Out of scope:
GlossaryTermMoveApprovalis handled separately.local-webserverlane failed at image build: Collate ingestion pinsopenmetadata-ingestion==2.1.0.0rc2, which isn't on PyPI. That's infra, not test code.Cherry-pick of #37514 to
2.1.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
graphPerformanceConfigon an upgraded instanceUnit tests
Not applicable (Playwright-only change).
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Files updated:
ContextCenterDocument.spec.ts,nightly/ContextCenter.spec.ts,ContextCenterArchive.spec.ts,LineageSettings.spec.ts,MetricSearch.spec.ts,utils/ContextCenterUtil.ts.yarn lint:playwrightreports 0 errors, andyarn tsc:playwrightreports no errors in the changed files. I haven't run the specs locally; they need the merge-queue run or the next AUT run to confirm.Manual testing performed
UI screen recording:
Not applicable — test-only change.
Checklist:
🤖 Generated with Claude Code