Skip to content

fix(playwright): paginate across pages in GlossaryTermRelationSettings tests [1.13] - #30712

Merged
ShaileshParmar11 merged 1 commit into
open-metadata:1.13from
anuj-kumary:fix/glossary-term-relation-settings-pagination-1.13
Jul 30, 2026
Merged

ShaileshParmar11 merged 1 commit into
open-metadata:1.13from
anuj-kumary:fix/glossary-term-relation-settings-pagination-1.13

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Backport of #30672 to the 1.13 branch.

  • Parallel test workers accumulate relation types that push the table beyond PAGE_SIZE_BASE (15), sending target rows to page 2+
  • The edits, deletes, and locks system-defined tests were failing because they only inspected page 1
  • Added a findRowAcrossPages helper that clicks Next Page until the target data-testid is visible, then each affected test calls it before interacting with the row

Test plan

  • edits a custom relation type and keeps the name immutable — now navigates to the correct page before clicking the edit button
  • deletes a custom relation type — now navigates to the correct page before checking visibility and deleting
  • locks system-defined relation types from edit and delete — now navigates to find relatedTo before asserting disabled state
  • No other tests changed; creates and paginates tests are unaffected

🤖 Generated with Claude Code

Greptile Summary

Adds a Playwright helper that searches paginated glossary relation-type rows and uses it before edit, delete, and system-defined relation assertions.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The helper begins from the first page, waits for each pagination response, polls for the requested row while React updates the DOM, and stops cleanly when no further page exists.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/GlossaryTermRelationSettings.spec.ts The new helper advances through relation-type pages while synchronizing with API responses, and the affected tests use it before interacting with uniquely identified rows.

Reviews (1): Last reviewed commit: "fix(playwright): paginate across pages i..." | Re-trigger Greptile

…s tests

Backport of open-metadata#30672 to 1.13.

Parallel test workers accumulate relation types that push the table beyond
PAGE_SIZE_BASE (15), sending target rows to page 2+. Added a
findRowAcrossPages helper that clicks Next Page until the target data-testid
is visible; edits, deletes, and locks system-defined tests call it before
interacting with the row.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anuj-kumary
anuj-kumary requested a review from a team as a code owner July 30, 2026 14:29
@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.

@github-actions github-actions Bot added the UI UI specific issues label Jul 30, 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!

@gitar-bot

gitar-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Backports a Playwright test fix for GlossaryTermRelationSettings by adding a pagination helper to find target rows across pages. No issues found.

Options

Display: compact → Showing less information.

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

Compact
gitar display:verbose         

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

@anuj-kumary anuj-kumary self-assigned this Jul 30, 2026
@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 Jul 30, 2026
@ShaileshParmar11
ShaileshParmar11 merged commit 61b5301 into open-metadata:1.13 Jul 30, 2026
125 of 135 checks passed
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