Skip to content

test(playwright): fix Context Center bulk-select and OSS workflow specs failing on 2.1 - #37512

Merged
anuj-kumary merged 3 commits into
mainfrom
anuj-kumary/construct-build-failing
Nov 11, 2026
Merged

anuj-kumary merged 3 commits into
mainfrom
anuj-kumary/construct-build-failing

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

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 on getByText('2 selected'). Since #37325, changing the documents search clears the selection. selectDocumentByName searches by each full file name, so selecting the second file changes the query and drops the first. The nightly ContextCenter.spec.ts bulk-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)

  • New selectDocumentsBySearch(page, searchTerm, fileNames) in ContextCenterUtil.ts: it searches once, then ticks each row. The three two-file tests now name their files <prefix>-one/-two.txt and select both under one search.
  • navigateToWorkflowDetailPage opens /workflows/<name>/workflow directly. The tests cover the detail page, not the list. This also removes the now-unused list helper and the redirectToHomePage calls that came before it.

Testing

  • yarn lint:playwright: 0 errors. yarn ui-checkstyle:changed and yarn tsc:playwright are clean.
  • The documents search returns both files for the shared prefix. I checked this against a local server: q=bulk-move-<id> returns exactly bulk-move-<id>-one.txt and bulk-move-<id>-two.txt.
  • I ran the specs locally, but that UI was a 2.0 checkout without Fixes #37309: Context Center Documents clear selection fails after folder/search changes #37325, so it isn't a valid check of this branch. CI's impacted-spec run is the real verification.

I'll backport this to 2.1 once it's green.

🤖 Generated with Claude Code

… 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.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 11, 2026 05:19
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@anuj-kumary anuj-kumary added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 11, 2026
@anuj-kumary
anuj-kumary enabled auto-merge (squash) November 11, 2026 05:55
anuj-kumary added a commit that referenced this pull request Nov 11, 2026
…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
@gitar-bot

gitar-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

Opening 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.

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

@anuj-kumary
anuj-kumary merged commit 8c2b61f into main Nov 11, 2026
63 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/construct-build-failing branch November 11, 2026 08:22
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants