Repository navigation
fix(playwright): paginate across pages in GlossaryTermRelationSettings tests - #30672
anuj-kumary wants to merge 4 commits into
Conversation
…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>
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
… 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>
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
1 similar comment
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ ApprovedAdds pagination support to GlossaryTermRelationSettings Playwright tests using OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
…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>
Summary
PAGE_SIZE_BASE(15), sending target rows to page 2+edits,deletes, andlocks system-definedtests were failing because they only inspected page 1findRowAcrossPageshelper that clicks Next Page until the targetdata-testidis visible, then each affected test calls it before interacting with the rowTest plan
edits a custom relation type and keeps the name immutable— now navigates to the correct page before clicking the edit buttondeletes a custom relation type— now navigates to the correct page before checking visibility and deletinglocks system-defined relation types from edit and delete— now navigates to findrelatedTobefore asserting disabled statecreatesandpaginatestests are unaffected🤖 Generated with Claude Code
Greptile Summary
Adds a pagination-aware row lookup helper for glossary relation settings tests.
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
Reviews (3): Last reviewed commit: "Merge branch 'main' into fix/glossary-te..." | Re-trigger Greptile