Skip to content

fix(playwright): paginate across pages in GlossaryTermRelationSettings tests - #30672

Closed
anuj-kumary wants to merge 4 commits into
open-metadata:mainfrom
anuj-kumary:fix/glossary-term-relation-settings-pagination
Closed

anuj-kumary wants to merge 4 commits into
open-metadata:mainfrom
anuj-kumary:fix/glossary-term-relation-settings-pagination

Conversation

@anuj-kumary

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

Copy link
Copy Markdown
Member

Summary

  • 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 pagination-aware row lookup helper for glossary relation settings tests.

  • Waits for each page’s rows to render before advancing.
  • Uses the helper before editing, deleting, and checking system-defined relation types.

Confidence Score: 5/5

The PR appears safe to merge.

The previous page-traversal race is resolved by waiting for the target locator to become visible after each page transition, and no blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/GlossaryTermRelationSettings.spec.ts The new web-first visibility wait addresses the previously reported rendering race before pagination advances.

Reviews (3): Last reviewed commit: "Merge branch 'main' into fix/glossary-te..." | Re-trigger Greptile

…lationSettings tests

Parallel workers accumulate relation types that exceed PAGE_SIZE_BASE (15),
pushing target rows to page 2+. The edits, deletes, and locks tests were
failing because they looked only at the first page.

Added findRowAcrossPages helper that navigates Next Page until the target
testId is visible, then each affected test calls 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 06:30
@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!

@anuj-kumary anuj-kumary self-assigned this Jul 30, 2026
@anuj-kumary anuj-kumary added skip-pr-checks Bypass PR metadata validation check safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch labels Jul 30, 2026
… race

isVisible() is instantaneous — after clicking Next Page and awaiting the
network response, it reads the old rows before React flushes the new ones,
causing the loop to skip the target page and throw.

Switch to waitFor({ state: 'visible', timeout: 3_000 }) which retries
until the element appears or the timeout expires, giving React time to
render before we decide to advance.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot removed the safe to test Add this label to run secure Github workflows on PRs 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!

siddhant1
siddhant1 previously approved these changes Jul 30, 2026
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Jul 30, 2026
@anuj-kumary
anuj-kumary enabled auto-merge July 30, 2026 06:44
@github-actions github-actions Bot removed the safe to test Add this label to run secure Github workflows on PRs 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!

1 similar comment
@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!

@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Jul 30, 2026
@anuj-kumary
anuj-kumary added this pull request to the merge queue Jul 30, 2026
@siddhant1 siddhant1 closed this Jul 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a manual request Jul 30, 2026
@gitar-bot

gitar-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Adds pagination support to GlossaryTermRelationSettings Playwright tests using findRowAcrossPages to prevent test failures from off-page table rows. 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

ShaileshParmar11 pushed a commit that referenced this pull request Jul 30, 2026
…s tests (#30712)

Backport of #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>
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 To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants