Skip to content

test(playwright): fix five AUT nightly flakes at their cause - #31894

Merged
harsh-vador merged 4 commits into
remove-welcome-widget-timingfrom
fix/aut-nightly-playwright-flakes
Aug 21, 2026
Merged

harsh-vador merged 4 commits into
remove-welcome-widget-timingfrom
fix/aut-nightly-playwright-flakes

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Collate's AUT nightly run 32476747983 retried 25 tests on each database lane (13 shared → 37 distinct specs). Fourteen of them live in this repo. Five have a cause the artifacts explain; the rest are listed at the bottom rather than guessed at.

Companion Collate-side PR: open-metadata/openmetadata-collate#6046.

Fixes

Spec Observed Cause Change
LineageInteraction — node panel opens on click (both lanes) Test timeout of 60000ms exceeded, no locator named clickLineageNode clicked the node as soon as the caller's getLineage wait returned. React Flow mounts nodes in its own layout pass after that, so the click auto-waited with no timeout of its own and the failure surfaced as a bare test timeout. Assert the node title is visible, then click.
ServiceIngestion — Create & Ingest BigQuery page.click on next-button timed out; log shows the element visible/enabled/stable with <span data-testid="alert-message">AutoPilot application is triggered…</span> intercepting Creating the service triggers AutoPilot; its toast renders bottom-center, directly over the wizard footer. waitForToastToDisappear(page, /AutoPilot/i) before advancing.
ExplorePageRightPanel_KnowledgeCenter — remove user owner (both lanes) owner chip never visible (60s) The Explore summary panel renders owners from the search document, refreshed asynchronously after the owner PATCH. A panel rendered before that refresh will never show the chip — waiting on it waits on the wrong thing. Re-open the entity until the chip is there.
GlossaryHierarchy — move term with children getByLabel('Select Parent') click timed out (60s) The label lookup is page-scoped and also matches the control of a hierarchy modal left in the DOM by an earlier step, so the click spent the test on a hidden element. Scope to change-parent-hierarchy-modal; assert visible + enabled first.
Glossary — change language to Dutch getByRole('menuitem', { name: 'English - EN' }) click timed out (60s) Click ran against an ant-dropdown mid enter-animation — precisely the case waitForAntdPopupToSettle was written for (the click point is computed against the 0.8-scaled menu). Settle the popup, assert the item, then click. Both switches.

No timeout was raised and no test.slow() was added.

Deliberately not addressed

AdvancedSearchSuggestions, SearchSettings, ContextCenterArticles, ContextCenterMemories, ServiceEntity, GlossaryP2Tests, SSOConfiguration (beforeEach) all failed as bare 60s timeouts with no anchor and passed on retry in 2–15s. Marking them slow would hide a regression as easily as it would fix a flake — they need a trace first.

PlatformLineage (dead 30s waitForResponse) and DataProductRename are already fixed on main by #31736; both were still failing in the nightly because it builds the 2.0 branch, which does not have that commit. #31736 is the single highest-value cherry-pick into 2.0 — its commit message names the PlatformLineage and NotificationTemplate failures verbatim, and its createOrFetch change also clears the three duplicate-seed 409s from the same run.

Verification

  • tsc --project playwright/tsconfig.json --noEmit — no new errors (the two pre-existing utils/glossary.ts errors and the unused-afterAction one in Glossary.spec.ts are unchanged; verified against a clean tree).
  • eslint on the touched files — 0 errors; remaining warnings are pre-existing and unrelated to these hunks.
  • organize-imports-cli + prettier --write applied.
  • Not executed against a live stack — these are AUT paths; the nightly is the verification.

🤖 Generated with Claude Code

Greptile Summary

The PR addresses several nightly test flakes by synchronizing Playwright actions with the UI state that makes them actionable, and also includes profiler fixture-ordering and domain/data-product navigation fixes.

  • Bounds the ingestion wizard’s Next click so it retries through the transient AutoPilot toast.
  • Reopens stale Explore panels, scopes glossary controls to the active modal, settles animated language menus, and waits for lineage nodes to become visible.
  • Moves profiler execution into class fixture setup and re-runs it after profiler settings change.
  • Makes domain and data-product name cells invoke the listing navigation handler without duplicating row click propagation.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/ServiceBaseClass.ts The bounded click safely replaces the racy toast-presence wait because the awaited AutoPilot request precedes this step and its five-second toast fits within the click’s retry window.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts Adds retrying navigation so owner assertions read a refreshed search-backed summary panel.
openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts Scopes the parent selector to the visible hierarchy modal to avoid stale hidden controls.
openmetadata-ui/src/main/resources/ui/playwright/utils/lineage.ts Waits explicitly for the React Flow node title before clicking it.
ingestion/tests/integration/profiler/test_sqa_profiler.py Establishes profiles during class setup and refreshes them after changing metric settings so tests no longer depend on method order.
openmetadata-ui/src/main/resources/ui/src/components/common/atoms/domain/ui/domainFieldRenderers.tsx Adds optional name-cell navigation while stopping propagation to prevent duplicate row navigation.

Reviews (2): Last reviewed commit: "test(playwright): bound the wizard Next ..." | Re-trigger Greptile

Khairajani and others added 3 commits August 21, 2026 12:00
…ta (#31882)

pytest orders unittest TestCase methods alphabetically, so
test_list_entity_profiles runs first -- before test_profiler_workflow has
created any profile. The module sets TestLoader.sortTestMethodsUsing = None
to force definition order, but that only affects unittest's own loader:
pytest collects TestCase methods itself and ignores it. Verified against an
unmodified checkout -- collection still yields list_entity_profiles first
with that line in place, so it has never had any effect here.

The test still passed, because it asserts on a global 24h window across
every table rather than on data it owns, and hard-deleted tables used to
leak their profiler rows into that window. #31556 stopped that leak (issue
#27041), and the latent ordering bug surfaced: shard-2 now fails with
"0 not greater than 0" on every PR that actually runs the ingestion
integration matrix, blocking the merge queue. PRs that do not touch
ingestion skip the matrix and report green, which is why this looked
branch-specific rather than repo-wide.

Run the profiler in setUpClass, where fixture data belongs, so no test
depends on another's ordering. Drop the ineffective loader hack, and turn
the `if profiles_all.entities:` guard into an assertion -- that guard
swallowed an empty unfiltered listing and hid which of the two calls was
actually empty, which is the signal needed to diagnose this.
* fix(ui): make whole Domain and Data Product rows clickable

* addressed comments

* Added unit test for the fix
Collate's AUT nightly run 32476747983 retried 25 tests on each database
lane. Fourteen of the distinct specs live here. These five have a cause
the artifacts explain; the rest are listed below rather than guessed at.

Lineage node clicks (LineageInteraction, both lanes)
  clickLineageNode clicked the node the moment the caller's getLineage
  wait returned. React Flow mounts nodes in its own layout pass after
  that, so the click auto-waited with no timeout of its own and the
  spec died as a bare "Test timeout of 60000ms exceeded" naming
  nothing. Assert the node is visible first.

Ingestion wizard Next (ServiceIngestion)
  Creating the service triggers AutoPilot, whose toast renders
  bottom-center — over the wizard footer. The trace shows the click on
  next-button intercepted by the toast's own alert-message span, then
  auto-waiting until the test timed out. Wait for that toast to dismiss
  before advancing.

Knowledge Center owner chip (ExplorePageRightPanel_KnowledgeCenter,
both lanes)
  The Explore summary panel renders owners from the search document,
  refreshed asynchronously after the owner PATCH. A panel that rendered
  before the refresh will never show the chip, so the 60s wait was
  waiting on the wrong thing. Re-open the entity until it is there.

Glossary hierarchy modal (GlossaryHierarchy)
  getByLabel('Select Parent') is page-scoped and also matches the
  control of a hierarchy modal an earlier step left in the DOM; the
  click then spent the whole test on a hidden element. Scope it to the
  modal and check it is visible and enabled first.

Language switch (Glossary — Dutch)
  The menuitem click ran against an ant-dropdown mid-enter-animation,
  which is exactly what waitForAntdPopupToSettle exists for. Use it on
  both switches.

Not addressed here, for lack of evidence rather than lack of interest:
AdvancedSearchSuggestions, SearchSettings, ContextCenterArticles,
ContextCenterMemories, ServiceEntity, GlossaryP2Tests and
SSOConfiguration all failed as bare 60s timeouts with no anchor and
passed on retry in seconds. Marking them slow would hide a regression
just as easily as fix a flake, so they need a trace first.
PlatformLineage and DataProductRename are already fixed on main by
#31736.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@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 Aug 21, 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!

@harsh-vador harsh-vador self-assigned this Aug 21, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Aug 21, 2026
@harsh-vador
harsh-vador changed the base branch from main to remove-welcome-widget-timing August 21, 2026 15:16
@harsh-vador
harsh-vador requested a review from a team as a code owner August 21, 2026 15:16
…toast out

Review point: waiting for the AutoPilot toast to detach is a no-op when
the toast has not rendered yet, so a toast that appears a moment later
still intercepts the click.

Correct, and waiting for it to appear first is not the answer either —
the toast is fired by the create call several steps earlier and
auto-closes after 5s (showSuccessToast(..., 5000) in AddServicePage), so
by the time this line runs it may equally have already closed. Any gate
on its presence is wrong for one of the two orderings.

Bound the click instead. Playwright retries an intercepted click for the
whole action timeout, and 30s outlasts the toast in every ordering: not
yet rendered, on screen now, or already gone.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@harsh-vador

Copy link
Copy Markdown
Contributor Author

Good catch on the no-op — fixed in 3cc69be, though not the way suggested.

Waiting for the toast to become visible first has the mirror-image problem. The toast is fired by the create call several steps earlier (showSuccessToast(t('message.auto-pilot-triggered-message'), 5000) in AddServicePage) and auto-closes after 5s, so by the time addIngestionPipeline reaches the Next click it may equally have already closed — the agents tab, the add-ingestion dropdown, the workflow-form load and fillIngestionDetails all run in between. A visible-wait would then burn its bounded timeout on every healthy run, and gating the detach-wait on "the toast actually appeared" only moves the race rather than closing it. Either gate is wrong for one of the two orderings.

So the toast wait is gone entirely and the click is bounded instead:

await page.click('[data-testid="next-button"]', { timeout: 30_000 });

Playwright retries an intercepted click for the whole action timeout, and 30s outlasts the 5s toast in every ordering — not yet rendered, on screen now, or already gone. The original failure was that the click had no per-action timeout, so the retry loop ran to the end of the test instead of outliving the toast.

@gitar-bot

gitar-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Fixes five AUT nightly Playwright flakes by improving synchronization for lineage nodes, ingestion toasts, owner chips, glossary modals, and language menus, addressing the AutoPilot toast race condition finding.

✅ 1 resolved
✅ Edge Case: AutoPilot toast wait is a no-op if toast not yet rendered

📄 openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/ServiceBaseClass.ts:219-228
waitForToastToDisappear waits for the alert-bar to reach state 'detached'; if the AutoPilot toast has not rendered yet at the moment of the call, the locator is already absent and waitFor resolves immediately. If AutoPilot's toast then appears a moment later (its rendering is asynchronous), it can still intercept the click on next-button, reintroducing the exact flake this change targets. Consider first waiting for the toast to become visible (toastNotification/waitFor 'visible' with a short bounded timeout) before waiting for it to disappear, or gate the disappear-wait on the toast actually having appeared.

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 👍 / 👎 | Powered by Gitar — free for open source

@harsh-vador
harsh-vador merged commit 65bcda6 into remove-welcome-widget-timing Aug 21, 2026
52 of 54 checks passed
@harsh-vador
harsh-vador deleted the fix/aut-nightly-playwright-flakes branch August 21, 2026 15:20
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 18 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 18 warning(s) across 4 changed file(s).

Count Rule
5 jsx-a11y/click-events-have-key-events
5 jsx-a11y/no-static-element-interactions
3 sonarjs/cyclomatic-complexity
3 react-hooks/exhaustive-deps
2 sonarjs/no-duplicate-string
All findings
Location Rule Message
🟡 src/components/DataProduct/DataProductListPage.tsx:76:30 sonarjs/cyclomatic-complexity {"message":"Function has a complexity of 12 which is greater than 10 authorized.","cost":2,"secondaryLocations":[{"line":76,"column":29,"endLine":76,"endColumn"
🟡 src/components/DataProduct/DataProductListPage.tsx:148:15 sonarjs/no-duplicate-string Define a constant instead of duplicating this literal 4 times.
🟡 src/components/DataProduct/DataProductListPage.tsx:169:56 sonarjs/cyclomatic-complexity {"message":"Function has a complexity of 13 which is greater than 10 authorized.","cost":3,"secondaryLocations":[{"line":169,"column":55,"endLine":169,"endColum
🟡 src/components/DataProduct/DataProductListPage.tsx:266:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'dataProductListing.actionHandlers'. Either include it or remove the dependency array.
🟡 src/components/DataProduct/DataProductListPage.tsx:376:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'dataProductColumns' and 'dataProductListing'. Either include them or remove the dependency array.
🟡 src/components/DomainListing/DomainListPage.tsx:51:68 sonarjs/cyclomatic-complexity {"message":"Function has a complexity of 13 which is greater than 10 authorized.","cost":3,"secondaryLocations":[{"line":51,"column":67,"endLine":51,"endColumn"
🟡 src/components/DomainListing/DomainListPage.tsx:125:15 sonarjs/no-duplicate-string Define a constant instead of duplicating this literal 3 times.
🟡 src/components/DomainListing/DomainListPage.tsx:257:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'domainColumns' and 'domainListing'. Either include them or remove the dependency array.
🟡 src/components/common/atoms/domain/ui/domainFieldRenderers.test.tsx:27:5 jsx-a11y/click-events-have-key-events Visible, non-interactive elements with click handlers must have at least one keyboard listener.
🟡 src/components/common/atoms/domain/ui/domainFieldRenderers.test.tsx:27:5 jsx-a11y/no-static-element-interactions Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs
🟡 src/components/common/atoms/domain/ui/domainFieldRenderers.test.tsx:62:7 jsx-a11y/click-events-have-key-events Visible, non-interactive elements with click handlers must have at least one keyboard listener.
🟡 src/components/common/atoms/domain/ui/domainFieldRenderers.test.tsx:62:7 jsx-a11y/no-static-element-interactions Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs
🟡 src/components/common/atoms/domain/ui/domainFieldRenderers.test.tsx:73:12 jsx-a11y/click-events-have-key-events Visible, non-interactive elements with click handlers must have at least one keyboard listener.
🟡 src/components/common/atoms/domain/ui/domainFieldRenderers.test.tsx:73:12 jsx-a11y/no-static-element-interactions Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs
🟡 src/components/common/atoms/domain/ui/useDomainTableColumns.test.tsx:31:5 jsx-a11y/click-events-have-key-events Visible, non-interactive elements with click handlers must have at least one keyboard listener.
🟡 src/components/common/atoms/domain/ui/useDomainTableColumns.test.tsx:31:5 jsx-a11y/no-static-element-interactions Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs
🟡 src/components/common/atoms/domain/ui/useDomainTableColumns.test.tsx:72:7 jsx-a11y/click-events-have-key-events Visible, non-interactive elements with click handlers must have at least one keyboard listener.
🟡 src/components/common/atoms/domain/ui/useDomainTableColumns.test.tsx:72:7 jsx-a11y/no-static-element-interactions Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 67%
67.06% (80442/119952) 51.47% (49251/95678) 52.46% (14707/28032)

@sonarqubecloud

Copy link
Copy Markdown

timothybrush pushed a commit to timothybrush/OpenMetadata that referenced this pull request Aug 22, 2026
…elpers (open-metadata#31853)

* test(ui): shorten welcome-banner wait in removeLandingBanner

The Playwright removeLandingBanner helper waited up to 5000ms for the
welcome-screen close button. For storageState sessions the banner never
renders (auth.setup records the user in the `loggedInUsers` localStorage
key that gates it), so that call always ran out the full timeout — 5s of
dead wait per invocation across many specs.

Only specs that log in a freshly created user on a new context actually
show the banner, and it paints shortly after currentUser resolves, so a
bounded wait is still needed. Reduce the timeout from 5000ms to 2000ms,
which comfortably covers the fresh-login case while cutting the wasted
wait everywhere else. No test asserts on the banner.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* test(ui): suppress welcome banner at source, drop removeLandingBanner

Follow-up to the timeout reduction: eliminate the welcome-banner dismiss
dance entirely instead of waiting on it.

The landing page renders the welcome banner only when the logged-in
user's `name` is absent from the `loggedInUsers` localStorage key
(MyDataPage.component.tsx). storageState sessions already have it seeded
(auth.setup logs each user in, which records them), which is why the old
removeLandingBanner waitFor always ran out its full timeout — it waited
on an element that never appears. Only specs that log in a freshly
created UserClass on a new context actually rendered the banner.

Seed `loggedInUsers` in UserClass.login() via addInitScript, before the
first navigation (mirroring disableEtagConditionalReads). The seeded name
equals the app's currentUser.name — responseData.name for a created user,
the email local-part for a pure login such as admin — so the banner never
renders for any session.

With the banner suppressed at the source, the reactive dismissals are
dead code and are removed:
- delete removeLandingBanner (common.ts) and all ~27 call sites
- delete closeWelcomeScreenIfVisible and its inline blocks (searchRBAC.ts)
- delete the inline dismiss block in entity.ts

Tour.spec.ts keeps its own conditional guards: that suite drives the
welcome/tour flow directly and the guards are harmless no-ops now. No
test asserts on the welcome banner.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* test(ui): let login opt out of welcome-banner suppression for Tour

The welcome-banner suppression seeds `loggedInUsers` in UserClass.login,
which hid the banner for every session. But the "Tour should work from
welcome screen" test enters the tour by clicking the banner's own CTA
("Take a product tour to get started!", rendered only in
WelcomeScreen.component.tsx), so suppressing the banner broke it.

Add a `suppressWelcomeScreen` login option (default true, so every other
spec keeps the suppression) and forward it through AdminClass. Tour.spec
logs in with `suppressWelcomeScreen: false` so the banner renders; its
other tests keep their existing "dismiss if visible" guards.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* test(playwright): fix five AUT nightly flakes at their cause (open-metadata#31894)

* fix(tests): profile in setUpClass so test_list_entity_profiles has data (open-metadata#31882)

pytest orders unittest TestCase methods alphabetically, so
test_list_entity_profiles runs first -- before test_profiler_workflow has
created any profile. The module sets TestLoader.sortTestMethodsUsing = None
to force definition order, but that only affects unittest's own loader:
pytest collects TestCase methods itself and ignores it. Verified against an
unmodified checkout -- collection still yields list_entity_profiles first
with that line in place, so it has never had any effect here.

The test still passed, because it asserts on a global 24h window across
every table rather than on data it owns, and hard-deleted tables used to
leak their profiler rows into that window. open-metadata#31556 stopped that leak (issue
open-metadata#27041), and the latent ordering bug surfaced: shard-2 now fails with
"0 not greater than 0" on every PR that actually runs the ingestion
integration matrix, blocking the merge queue. PRs that do not touch
ingestion skip the matrix and report green, which is why this looked
branch-specific rather than repo-wide.

Run the profiler in setUpClass, where fixture data belongs, so no test
depends on another's ordering. Drop the ineffective loader hack, and turn
the `if profiles_all.entities:` guard into an assertion -- that guard
swallowed an empty unfiltered listing and hid which of the two calls was
actually empty, which is the signal needed to diagnose this.

* fix(ui): make whole Domain and Data Product rows clickable (open-metadata#31876)

* fix(ui): make whole Domain and Data Product rows clickable

* addressed comments

* Added unit test for the fix

* test(playwright): fix five AUT nightly flakes at their cause

Collate's AUT nightly run 32476747983 retried 25 tests on each database
lane. Fourteen of the distinct specs live here. These five have a cause
the artifacts explain; the rest are listed below rather than guessed at.

Lineage node clicks (LineageInteraction, both lanes)
  clickLineageNode clicked the node the moment the caller's getLineage
  wait returned. React Flow mounts nodes in its own layout pass after
  that, so the click auto-waited with no timeout of its own and the
  spec died as a bare "Test timeout of 60000ms exceeded" naming
  nothing. Assert the node is visible first.

Ingestion wizard Next (ServiceIngestion)
  Creating the service triggers AutoPilot, whose toast renders
  bottom-center — over the wizard footer. The trace shows the click on
  next-button intercepted by the toast's own alert-message span, then
  auto-waiting until the test timed out. Wait for that toast to dismiss
  before advancing.

Knowledge Center owner chip (ExplorePageRightPanel_KnowledgeCenter,
both lanes)
  The Explore summary panel renders owners from the search document,
  refreshed asynchronously after the owner PATCH. A panel that rendered
  before the refresh will never show the chip, so the 60s wait was
  waiting on the wrong thing. Re-open the entity until it is there.

Glossary hierarchy modal (GlossaryHierarchy)
  getByLabel('Select Parent') is page-scoped and also matches the
  control of a hierarchy modal an earlier step left in the DOM; the
  click then spent the whole test on a hidden element. Scope it to the
  modal and check it is visible and enabled first.

Language switch (Glossary — Dutch)
  The menuitem click ran against an ant-dropdown mid-enter-animation,
  which is exactly what waitForAntdPopupToSettle exists for. Use it on
  both switches.

Not addressed here, for lack of evidence rather than lack of interest:
AdvancedSearchSuggestions, SearchSettings, ContextCenterArticles,
ContextCenterMemories, ServiceEntity, GlossaryP2Tests and
SSOConfiguration all failed as bare 60s timeouts with no anchor and
passed on retry in seconds. Marking them slow would hide a regression
just as easily as fix a flake, so they need a trace first.
PlatformLineage and DataProductRename are already fixed on main by
open-metadata#31736.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* test(playwright): bound the wizard Next click instead of waiting the toast out

Review point: waiting for the AutoPilot toast to detach is a no-op when
the toast has not rendered yet, so a toast that appears a moment later
still intercepts the click.

Correct, and waiting for it to appear first is not the answer either —
the toast is fired by the create call several steps earlier and
auto-closes after 5s (showSuccessToast(..., 5000) in AddServicePage), so
by the time this line runs it may equally have already closed. Any gate
on its presence is wrong for one of the two orderings.

Bound the click instead. Playwright retries an intercepted click for the
whole action timeout, and 30s outlasts the toast in every ordering: not
yet rendered, on screen now, or already gone.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: Himanshu Khairajani <[email protected]>
Co-authored-by: Anujkumar Yadav <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* test(playwright): assert the hierarchy dialog, not Ant's modal root (open-metadata#31904)

changeTermHierarchyFromModal waited on
[data-testid="change-parent-hierarchy-modal"] itself. ChangeParentHierarchy
passes that testid to Ant's <Modal>, which spreads it onto .ant-modal-root — a
position: fixed, zero-size container whose children carry the layout. Playwright
requires a non-empty bounding box, so that element is never visible, open or
closed, and the assertion could only ever fail:

  19 x locator resolved to <div class="ant-modal-root"
  data-testid="change-parent-hierarchy-modal">...</div>
    - unexpected value "hidden"

while the trace screenshot shows the dialog plainly open. The code this replaced
asserted [role="dialog"], which does have a box.

Keep the scoping — the bare 'Select Parent' label also matches the control of a
hierarchy modal an earlier step left in the DOM — but hang it off the dialog
inside the root. Deterministic failure across 5 call sites: GlossaryHierarchy
x3, Glossary x2.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>

* test(playwright): poll the landing-page widget reveal instead of revealing once

waitForLandingPageWidget revealed the widget once and then handed off to
expect(widget).toBeVisible(). A deferred slot only mounts its widget when it
is scrolled into view, and toBeVisible cannot scroll — so whenever the layout
attached after that single reveal, revealLandingPageWidget found nothing to
scroll, the widget never mounted, and the assertion spent its full 15s on an
element that was never going to appear.

Seen in AUT run 32513179631: DomainDataProductsWidgets 'Assign Widgets' saved
the layout, got the success toast, navigated to /my-data, and the trace then
shows only two zero-count queries and no scroll step before the timeout. The
persona docStore document fetched by that same page load contained both
KnowledgePanel.Domains and KnowledgePanel.DataProducts with a 200, so the
layout was saved and served correctly — only the reveal raced.

Poll isLandingPageWidgetVisible, which re-reveals on every iteration and is
already used this way elsewhere in this file. A widget that is genuinely
absent still fails, at the poll timeout rather than instantly.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: Harsh Vador <[email protected]>
Co-authored-by: Himanshu Khairajani <[email protected]>
Co-authored-by: Anujkumar Yadav <[email protected]>
Co-authored-by: Shailesh Parmar <[email protected]>

This branch was previously deployed

1 inactive deployment
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants