Repository navigation
test(playwright): fix Context Center bulk-select and OSS workflow specs failing on 2.1 - #37512
Conversation
… workflows by URL Context Center: since #37325 changing the documents search clears the selection, so selecting two files with a search per file left only the last one selected and '2 selected' never appeared. Give the files a shared prefix and select both under one search (selectDocumentsBySearch). Workflows: the list shows 12 cards per page and the seeded workflow definitions already fill page 1, so the test workflow was on page 2 and never clickable. Open the detail page by URL.
❌ 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 |
…cs (2.1 backport of #37512) (#37513) * test(playwright): select bulk documents under one search and open OSS workflows by URL Context Center: since #37325 changing the documents search clears the selection, so selecting two files with a search per file left only the last one selected and '2 selected' never appeared. Give the files a shared prefix and select both under one search (selectDocumentsBySearch). Workflows: the list shows 12 cards per page and the seeded workflow definitions already fill page 1, so the test workflow was on page 2 and never clickable. Open the detail page by URL. (cherry picked from commit 899e67f) * chore(playwright): regenerate impact map
…-build-failing # Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ContextCenterDocument.spec.ts # openmetadata-ui/src/main/resources/ui/playwright/e2e/nightly/ContextCenter.spec.ts # openmetadata-ui/src/main/resources/ui/playwright/utils/ContextCenterUtil.ts
Code Review ✅ Approved 🟢 Low riskOpening workflow tests directly by URL changes only test navigation and coverage; it leaves application runtime behavior and interfaces unchanged. Fixes two failing Playwright specs on the 2.1 branch by selecting both bulk-move documents under a single search and opening OSS workflow detail pages directly by URL. 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 |
Problem
Two chromium shards have failed on every 2.1 release-branch E2E run since the Nov 9 rebuild of the 2.1 branch, on both MySQL and Postgres (e.g. https://github.com/open-metadata/OpenMetadata/actions/runs/42933482899, https://github.com/open-metadata/OpenMetadata/actions/runs/42933493444). The specs are identical on
main.ContextCenterDocument.spec.ts(chromium-25): "bulk move…" and "bulk delete 2 documents…" time out ongetByText('2 selected'). Since #37325, changing the documents search clears the selection.selectDocumentByNamesearches by each full file name, so selecting the second file changes the query and drops the first. The nightlyContextCenter.spec.tsbulk-download test uses the same pattern.WorkflowOssRestrictions.spec.ts(chromium-20): four tests time out clicking[data-testid="pw-oss-test-workflow-…"]. The Workflows list shows 12 cards per page (the failure snapshot shows "Page 1 of 2"). The 19 seeded workflow definitions already fill page 1, so the test workflow is on page 2.Fix (test only)
selectDocumentsBySearch(page, searchTerm, fileNames)inContextCenterUtil.ts: it searches once, then ticks each row. The three two-file tests now name their files<prefix>-one/-two.txtand select both under one search.navigateToWorkflowDetailPageopens/workflows/<name>/workflowdirectly. The tests cover the detail page, not the list. This also removes the now-unused list helper and theredirectToHomePagecalls that came before it.Testing
yarn lint:playwright: 0 errors.yarn ui-checkstyle:changedandyarn tsc:playwrightare clean.q=bulk-move-<id>returns exactlybulk-move-<id>-one.txtandbulk-move-<id>-two.txt.I'll backport this to
2.1once it's green.🤖 Generated with Claude Code