Repository navigation
fix(e2e): large-glossary drag-drop test consistently timing out in AUT - #31421
anuj-kumary wants to merge 1 commit into
Conversation
The waitForResponse('/api/v1/glossaryTerms?*') glob was unreliable —
Playwright treats '?' as a one-character glob wildcard, not the URL
query-string separator, so the waiter never resolved and the test hung
until the 30 s default before the overall 60 s limit hit. Replace with
a predicate that checks for 'directChildrenOf=' in the URL. Also add
test.slow() to give the test 3× the timeout budget in slower AUT
environments.
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! |
Code Review ✅ ApprovedAdds test.slow() and replaces the fragile waitForResponse string glob with a reliable predicate in the large-glossary drag-drop test to prevent timeouts. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
Closing — re-raising from origin branch directly. |
Root cause (traced from nightly run #31585212160, shard 2, retry #2)
The test
Large Glossary Performance Tests › should handle drag and drop for term reorderingfailed on all 3 attempts with 60 s test-timeout — not an assertion failure.The full stack trace from retry #2 pins the exact hang:
What was happening
confirmationDragAndDropGlossarysets uppatchGlossaryTermResponse = page.waitForResponse('/api/v1/glossaryTerms/*')and then calls:getByRole('button', { name: 'Move' })is ambiguous in a 100-term glossary. TableV2 renders a drag handle for every row; those handles expose an accessible label that matches'Move'. Playwright clicks the first matching element in DOM order, which is a drag handle — not the confirmation modal's Move button. No PATCH request fires,waitForResponsenever resolves, and the test hangs until the 60 s ceiling.Fix already in
mainThe unscoped click was fixed in #29728 (merged Jul 15):
The nightly AUT 1.13 branch predates that fix.
This PR — spec-level resilience
The spec itself has two additional fragility points that this PR corrects:
page.waitForResponse('/api/v1/glossaryTerms?*')— Playwright's URL matcher treats?as a glob wildcard (exactly one character), not the URL query-string separator. The predicate is replaced with a function that checksurl.includes('directChildrenOf='), matching the actual child-load request fired by the Expand All button.No
test.slow()— a drag-drop test that navigates a page, fires a PATCH, then expands 100+ terms has no extra timeout headroom.test.slow()triples the budget to 180 s, preventing future timeouts in loaded AUT environments.Changes
playwright/e2e/Features/Glossary/LargeGlossaryPerformance.spec.tstest.slow(), replacewaitForResponsestring glob with reliable predicateTest plan
LargeGlossaryPerformance.spec.tsis affected (all use independentwaitForResponsecalls or none at all)🤖 Generated with Claude Code