Repository navigation
Fixes #33502: Move the AI-mode observability e2e suite from Collate to OSS - #33683
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
| const setupPage = await browser.newPage(); | ||
| await redirectToAiModeHomePage(setupPage); | ||
| const { apiContext, afterAction } = await getApiContext(setupPage); |
There was a problem hiding this comment.
Setup pages lack authentication
browser.newPage() creates a fresh context and does not inherit the spec's test.use({ storageState: ... }). redirectToAiModeHomePage only enables AI mode and navigates, so getApiContext(setupPage) reads an empty token and fixture creation uses an invalid bearer token. The same pattern in teardown prevents reliable cleanup. Use an explicitly authenticated context or the existing admin API-context helpers. This also occurs in the new Observability, ObservabilityClickPaths, and TestCaseEdit suites.
✅ Playwright Results — workflow succeededValidated commit ✅ 632 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 57m 40s ⏱️ Max setup 5m 43s · max shard execution 19m 44s · max shard-job elapsed before upload 23m 27s · reporting 4s 🌐 221.90 requests/attempt · 2.12 app boots/UI scenario · 21.96% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
The AI shell and the observability module live in OSS since #31911, and #33502 moved the /observability link prefixing there too, so the e2e coverage for those pages belongs in OSS rather than collate-ui. Seven specs move into playwright/e2e/Features/AIMode/, alongside the CustomPropertiesPanel spec migrated earlier. Their imports already pointed almost entirely at the OSS tree, so the move is mostly dropping the src/openmetadata-ui/playwright/ prefix. Two helpers the specs needed come across into e2e/Utils/appMode.ts: redirectToAiModeHomePage and expandAiSubPanel. Both shed their AskCollate-only parts — the chat query-cache clear and the chatConversations bootstrap wait — and ObservabilityPermissions now waits on the ask-sidebar to confirm the shell booted instead. Pipeline observability pages are still Collate-only (observability.module routes them through the app-mode fallback), so those blocks stay behind: the whole Pipeline describe in ClickPaths, the Pipeline page-rendering and breadcrumb rows, and the pipeline detail-URL test. OSS's playwright guardrails are stricter than Collate's, and the suppressions baseline may not grow, so the positional locators that came across carry justified inline disables naming why the position is the assertion. One Buffer.compare became a base64 comparison, which this repo's @types/node accepts.
plan-playwright hard-fails when every planned test in a spec file falls through to FALLBACK_TEST_MS, because the planner then under-budgets the shard holding them and the merge-queue wrapper times out (#30812). The seven newly-moved files had no history at all, so Observability (17), TestCaseBreadcrumb (6) and TestCaseEdit (5) tripped the >=5-test hard fail and the rest warned. Durations are real, not estimates: captured from a local `--project=chromium --workers=1 --reporter=json` run against a live stack, in which all 39 of these tests passed. Only passing results are recorded, with outcome: expected.
e3ddbf4 to
ccd0760
Compare
…e checks Two review findings on the migrated specs, both carried over verbatim from Collate rather than introduced by the move. Add Alert opened nothing observable: the test asserted the URL, the AI sidebar and the text "Add Alert", all of which are already true before the click — "Add Alert" labels the trigger as well as the modal. Measured on a running stack: before the click the page has 0 `role="dialog"` nodes and no `alert-name-input`, while the text is already present. Assert the dialog and two of its fields instead, which a broken open handler cannot satisfy. The positional-locator suppression that the text match needed goes away with it. The permission absence checks could pass before permissions loaded. `SubPanel` filters a gated item on `Boolean(permissions?.[resource]?.[operation])`, which is equally false when access is denied and while the provider still holds its empty initial value, so a permission-loading regression would have kept the suite green. Settle the boot-time `GET /api/v1/permissions` in the fixture, hoisted above `login()` — that navigation boots the app and issues the fetch, confirmed by the suite passing in 13s rather than hanging on the listener.
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Code Review ✅ Approved🟢 Low risk · Playwright-only test migration and helper additions do not alter product behavior. Migrates the AI-mode observability e2e suite from Collate to OSS, moving seven specs into OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
…o OSS (#33683) * test(ui): move the AI-mode observability e2e suite from Collate to OSS The AI shell and the observability module live in OSS since #31911, and #33502 moved the /observability link prefixing there too, so the e2e coverage for those pages belongs in OSS rather than collate-ui. Seven specs move into playwright/e2e/Features/AIMode/, alongside the CustomPropertiesPanel spec migrated earlier. Their imports already pointed almost entirely at the OSS tree, so the move is mostly dropping the src/openmetadata-ui/playwright/ prefix. Two helpers the specs needed come across into e2e/Utils/appMode.ts: redirectToAiModeHomePage and expandAiSubPanel. Both shed their AskCollate-only parts — the chat query-cache clear and the chatConversations bootstrap wait — and ObservabilityPermissions now waits on the ask-sidebar to confirm the shell booted instead. Pipeline observability pages are still Collate-only (observability.module routes them through the app-mode fallback), so those blocks stay behind: the whole Pipeline describe in ClickPaths, the Pipeline page-rendering and breadcrumb rows, and the pipeline detail-URL test. OSS's playwright guardrails are stricter than Collate's, and the suppressions baseline may not grow, so the positional locators that came across carry justified inline disables naming why the position is the assertion. One Buffer.compare became a base64 comparison, which this repo's @types/node accepts. * chore(playwright): auto-refresh impact-map.generated.json * test(ui): seed timing-baseline for the moved AI-mode observability specs plan-playwright hard-fails when every planned test in a spec file falls through to FALLBACK_TEST_MS, because the planner then under-budgets the shard holding them and the merge-queue wrapper times out (#30812). The seven newly-moved files had no history at all, so Observability (17), TestCaseBreadcrumb (6) and TestCaseEdit (5) tripped the >=5-test hard fail and the rest warned. Durations are real, not estimates: captured from a local `--project=chromium --workers=1 --reporter=json` run against a live stack, in which all 39 of these tests passed. Only passing results are recorded, with outcome: expected. * test(ui): assert the alert modal and settle permissions before absence checks Two review findings on the migrated specs, both carried over verbatim from Collate rather than introduced by the move. Add Alert opened nothing observable: the test asserted the URL, the AI sidebar and the text "Add Alert", all of which are already true before the click — "Add Alert" labels the trigger as well as the modal. Measured on a running stack: before the click the page has 0 `role="dialog"` nodes and no `alert-name-input`, while the text is already present. Assert the dialog and two of its fields instead, which a broken open handler cannot satisfy. The positional-locator suppression that the text match needed goes away with it. The permission absence checks could pass before permissions loaded. `SubPanel` filters a gated item on `Boolean(permissions?.[resource]?.[operation])`, which is equally false when access is denied and while the provider still holds its empty initial value, so a permission-loading regression would have kept the suite green. Settle the boot-time `GET /api/v1/permissions` in the fixture, hoisted above `login()` — that navigation boots the app and issues the fetch, confirmed by the suite passing in 13s rather than hanging on the listener. * chore(playwright): auto-refresh impact-map.generated.json --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… assertion in non-existent glossary test (open-metadata#33760) * fix(playwright): replace flaky isVisible chain with deterministic 404 assertion for non-existent glossary test The original test checked six conditions with isVisible({ timeout }) which does not retry — it snapshotted the current DOM state instantly. The .left-panel-card skeleton renders before the API response arrives, so the test short-circuited to true on that last condition and passed as a false positive. On slower runs nothing had rendered yet and all six checks returned false, causing the intermittent failure. Replace with: - page.waitForResponse() hoisted before page.goto() to intercept /api/v1/glossaries/name/* and assert HTTP 404 - expect().toBeVisible() on data-testid="empty-placeholder" (the actual element GlossaryPage renders via EmptyPlaceholder when isGlossaryNotFound is true) with a 10 s auto-retry timeout Also removes the suppressed waitForAllLoadersToDisappear().catch(()=>{}) which masked the incomplete page state. * remove narrating comments per review * chore(playwright): prune 2 stale no-positional-locators suppressions after .first() removal * chore(playwright): lower corpus no-positional-locator total 1183→1181 after removing 2 .first() calls * fix(checkstyle): restore 2-space indent and trailing comma in import block * Fixes open-metadata#33502: Keep observability links on /observability routes in AI app mode (open-metadata#33681) * Fixes open-metadata#33502: Keep observability links on /observability routes in AI app mode ObservabilityRouterClassBase returned classic paths regardless of app mode, so in-app navigation from the AI Data Quality page (tabs, test case links, breadcrumbs) fell back to classic pages rendered inside the AI shell. - isEmbeddedMode() now mirrors AppRouter's AI-shell check (AI_APP_MODE or an active app-mode session). - Data quality, incident manager, test suite, test case, version and dimension paths get the /observability prefix in that mode; each matches a route in observability.module.tsx. Alert paths already live under /observability. - A path method a subclass overrides is left unprefixed so Collate's override, which still prefixes on top of super, does not produce a double prefix. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Fixes open-metadata#33502: note that OSS also namespaces the test suite path in AI mode open-metadata#33679 relaxed this assertion to a suffix match because `getTestSuitePath` was a no-op in OSS and only Collate's override namespaced the route. This branch makes OSS namespace it too, in AI app mode, which `openDetailsPage` enables — so the comment's reasoning no longer matches the code. The regex is already correct for both builds. Only the comment changes. * chore(playwright): auto-refresh impact-map.generated.json --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Fixes open-metadata#33502: Move the AI-mode observability e2e suite from Collate to OSS (open-metadata#33683) * test(ui): move the AI-mode observability e2e suite from Collate to OSS The AI shell and the observability module live in OSS since open-metadata#31911, and open-metadata#33502 moved the /observability link prefixing there too, so the e2e coverage for those pages belongs in OSS rather than collate-ui. Seven specs move into playwright/e2e/Features/AIMode/, alongside the CustomPropertiesPanel spec migrated earlier. Their imports already pointed almost entirely at the OSS tree, so the move is mostly dropping the src/openmetadata-ui/playwright/ prefix. Two helpers the specs needed come across into e2e/Utils/appMode.ts: redirectToAiModeHomePage and expandAiSubPanel. Both shed their AskCollate-only parts — the chat query-cache clear and the chatConversations bootstrap wait — and ObservabilityPermissions now waits on the ask-sidebar to confirm the shell booted instead. Pipeline observability pages are still Collate-only (observability.module routes them through the app-mode fallback), so those blocks stay behind: the whole Pipeline describe in ClickPaths, the Pipeline page-rendering and breadcrumb rows, and the pipeline detail-URL test. OSS's playwright guardrails are stricter than Collate's, and the suppressions baseline may not grow, so the positional locators that came across carry justified inline disables naming why the position is the assertion. One Buffer.compare became a base64 comparison, which this repo's @types/node accepts. * chore(playwright): auto-refresh impact-map.generated.json * test(ui): seed timing-baseline for the moved AI-mode observability specs plan-playwright hard-fails when every planned test in a spec file falls through to FALLBACK_TEST_MS, because the planner then under-budgets the shard holding them and the merge-queue wrapper times out (open-metadata#30812). The seven newly-moved files had no history at all, so Observability (17), TestCaseBreadcrumb (6) and TestCaseEdit (5) tripped the >=5-test hard fail and the rest warned. Durations are real, not estimates: captured from a local `--project=chromium --workers=1 --reporter=json` run against a live stack, in which all 39 of these tests passed. Only passing results are recorded, with outcome: expected. * test(ui): assert the alert modal and settle permissions before absence checks Two review findings on the migrated specs, both carried over verbatim from Collate rather than introduced by the move. Add Alert opened nothing observable: the test asserted the URL, the AI sidebar and the text "Add Alert", all of which are already true before the click — "Add Alert" labels the trigger as well as the modal. Measured on a running stack: before the click the page has 0 `role="dialog"` nodes and no `alert-name-input`, while the text is already present. Assert the dialog and two of its fields instead, which a broken open handler cannot satisfy. The positional-locator suppression that the text match needed goes away with it. The permission absence checks could pass before permissions loaded. `SubPanel` filters a gated item on `Boolean(permissions?.[resource]?.[operation])`, which is equally false when access is denied and while the provider still holds its empty initial value, so a permission-loading regression would have kept the suite green. Settle the boot-time `GET /api/v1/permissions` in the fixture, hoisted above `login()` — that navigation boots the app and issues the fetch, confirmed by the suite passing in 13s rather than hanging on the listener. * chore(playwright): auto-refresh impact-map.generated.json --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Move the query-builder and filter glossary fields onto GlossaryTermPicker (open-metadata#33736) * feat(ui): move the query-builder glossary fields onto GlossaryTermPicker Migrates the remaining glossary-term selectors: the Workflow Builder condition values, the Data Quality dashboard filter, and the three query-builder fields (advanced search, JSONLogic related terms, and the data contract semantics rule). The query-builder fields mark themselves with `withGlossaryTermField` rather than being matched by path, because the JSONLogic builders reach glossary terms, classification tags and tier through the same `tags.tagFQN` subfield. The widgets swap only the rendered control and still hand RAQB the same FQN string, so operators and the ES/JSONLogic serialisation are unchanged. `fqnsToGlossaryTags`/`glossaryTagsToFqns` centralise the FQN mapping the CSV editor already needed. * fix(ui): keep the DQ glossary filter as a chip, with the shared tree inside The filter bar renders every filter as a labelled button chip, and its regression test asserts that. Rendering the picker's input trigger there broke both that check and the flow that drives the chip's search box. Give the picker the button trigger and staged commit the other filters use, so the chip affordance is unchanged and only the dropdown contents become the shared tree. * fix(ui): key the DQ glossary filter testid off the label, as the specs do The dashboard's E2E locators are label-based (search-dropdown-Tag, search-dropdown-Glossary Term); switching to searchKey broke the domain-tab filter-bar check. * fix(ui): decide the glossary control in the widget config, not the widget OMSelectWidget returned its async ComboBox before reaching the glossary check, so a glossary field — which sets asyncFetch and useAsyncSearch — kept the flat select for single-value operators and the migration never took effect there. Branching in the OMConfig factories fixes that for both operators and keeps either widget's complexity unchanged. Adds a test that pins which control each factory returns. Also forwards the dashboard chip's isOpen/onOpenChange so the filter bar can still close it, and extracts the widget's nested ternary. * test(ui): assert the glossary factory against real widgets and the real marker Renders the actual OMSelectWidget/OMMultiSelectWidget rather than mocks, and builds the field settings with withGlossaryTermField, so the test covers the production marker path instead of mock wiring. Only the picker stays mocked — it mounts the glossary tree and fetches on open. * refactor(ui): fold the picker's map+filter into one reduce The filter existed as a type predicate to narrow the intermediate array that map produced. Building the list in one pass drops both the extra array and the predicate. * refactor(ui): name the DQ filter discriminants and reduce the FQN mapping Adds DQ_FILTER_TYPES alongside the existing DQ_FILTER_KEYS and uses it for every `type` on DqFilterDescriptor — the declarations, the emitted descriptors, both renderers and the hook test — so the discriminant is no longer a bare string. Also folds fqnsToGlossaryTags into a single reduce. * refactor(ui): use DQ_FILTER_TYPES in the remaining type comparisons The earlier sweep only matched `type === '...'`, so the `type !== '...'` guards in the hook test and the `type: '...' as const` fixtures in the chip and bar tests were left as bare strings. * fix checkstyle * Fixes open-metadata#33753: de-flake visitUserProfilePage by dropping its Elasticsearch dependency (open-metadata#33757) * Fixes open-metadata#33753: de-flake visitUserProfilePage by dropping its Elasticsearch dependency visitUserProfilePage() reached a profile by driving the Users list UI: search the name, wait for /api/v1/search/query?index=user, click the row. That list is Elasticsearch-backed, so a user created seconds earlier may not be indexed yet — and the wait cannot recover, because exactly one search is issued and nothing re-queries once the empty result renders. The 15s visibility wait runs against a list that will never repopulate. Navigate straight to /users/<name> and wait on the profile page's own users/name read, which is immediately consistent. No search index, no list-refresh race, one request instead of three. All six callers only want the profile page; Users.spec re-enters the list explicitly via visitUserListPage afterwards, so nothing depended on the side effect. Specs that genuinely exercise list search already use searchUserByEmail. Also drop UserProfileOnlineStatus's createOrFetchUser: its fallback did GET /api/v1/users?email=... but UserResource's list endpoint has no email query param, so the filter was ignored and an arbitrary user came back. UserClass.create() already re-fetches by name when the user exists. * Encode the username and assert the profile response succeeded Review feedback on open-metadata#33757. The helper interpolated the raw username into both the route and the response matcher. The app encodes it in both, so a name containing a reserved character produced a matcher that never matched and a wait that timed out instead of failing on the real problem. Awaiting the response also accepted a 404/5xx: the page drops its loader and renders an error state, and callers that guard assertions on visibility (UserProfileOnlineStatus) would then assert nothing and pass. Assert the response is ok, with the status in the message. * fix(ui): hide Login Configuration when an external SSO provider is configured (open-metadata#33598) * fix(ui): hide Login Configuration when an external SSO provider is configured The login configuration (failed-attempt lockout, access block time, JWT expiry) is enforced by OpenMetadata's own login flow. Under an external IdP those settings are inert, but the page was still listed under Settings > Preferences for every admin. LoginConfigurationPage already knew this and skipped the fetch for non-basic providers, but still rendered — so the page showed "--" for every field, and the Edit button stayed live, letting an admin save values that never take effect. Gate the menu item on the provider alongside the existing admin check, and 404 both the details and edit routes so a bookmarked URL cannot reach them, matching the existing Navigate-to-NOT_FOUND guards in SettingsRouter. With the route as the single gate, the page's own unreachable provider check is removed. LDAP is treated as basic: the server enforces the same login config for it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(ui): keep Login Configuration visible for the openmetadata provider Review caught that the provider predicate excluded AuthProvider.Openmetadata. That is wrong: the server routes `openmetadata` through BasicAuthServletHandler ("OpenMetadata provider uses Basic auth internally", AuthServeletHandlerFactory), and JwtFilter#isSameProvider documents `basic` and `openmetadata` as two historical names for the same native-password authenticator. The login configuration is therefore enforced for it, and hiding the page removed access to settings that were still live. LDAP stays included — LdapAuthenticator reads the same three settings (maxLoginFailAttempts, accessBlockTime, jwtTokenExpiryTime). Renamed isBasicAuthProvider to isLoginConfigurationApplicable: the set is three providers, not "basic", and the name now states the rule it encodes rather than one of its members. Tests assert all three providers keep the page; the hidden set stays derived from the enum so a newly added provider defaults to hidden. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * chore(playwright): auto-refresh impact-map.generated.json * fix(ui): stop the settings menu reaching into the application store CI failed with "useApplicationStore.getState is not a function". Reading the store inside getGlobalSettingsMenuWithPermission made a pure util depend on a hook, so every test that mocks useApplicationStore as a bare jest.fn() — 141 files do — crashed the moment it reached the settings menu. EntitySearchSettings.test.tsx was the one that broke. frontend-performance.md already forbids this ("pure utilities cannot depend on React, UI/state layers, pages, hooks, or REST"). It was dismissed because lint did not flag it and TableClassBase does the same thing; the rule was right and the precedent is a latent bug of the same shape. The provider is now an optional third argument, passed by the two pages that actually render the entry. Omitting it leaves the entry visible: showing an inert settings page is cosmetic, hiding a live one takes working settings away from admins. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Merge branch 'main' into fix/hide-login-configuration-under-sso Resolved .github/playwright/impact-map.generated.json by regenerating it (python3 .github/scripts/generate_playwright_impact_map.py) on top of main's version rather than hand-merging a generated file. AuthProvider.util.ts auto-merged: main's AuthCoordinator/validator refactor (open-metadata#31675) and this branch's isLoginConfigurationApplicable predicate touch different parts of the file; both verified present afterwards. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * chore(playwright): auto-refresh impact-map.generated.json * chore(playwright): auto-refresh impact-map.generated.json --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix(e2e): stabilise SubDomainPagination and GlossaryHierarchy flaky Playwright tests (open-metadata#33747) * fix(e2e): stabilise SubDomainPagination and GlossaryHierarchy flaky tests SubDomainPagination: 60 subdomains were created in parallel then tests began immediately. checkSubDomainCount polls Elasticsearch, so it raced the async indexing pipeline. Fix: after the parallel creates, poll all 60 FQNs concurrently via waitForSearchIndexed (domain_search_index, 60 s timeout) so the beforeAll only returns once every subdomain is searchable. GlossaryHierarchy H-M03 ("move nested term to root level"): changeTermHierarchyFromModal triggers moveAsync on the backend, which returns HTTP 200 immediately but applies the hierarchy change asynchronously. H-M04 and H-M05 already had expect.poll guards for this (added in open-metadata#33440); H-M03 was missing the same pattern. Fix: add expect.poll on GET /api/v1/glossaryTerms/:id checking term.parent is falsy, with 60 s timeout and backoff intervals, matching the existing H-M04/H-M05 pattern exactly. Also add test.slow(true) since the async processing can take longer than the default timeout. * fix(playwright): guard against transient API errors in GlossaryHierarchy H-M03 poll Without res.ok() check, a non-2xx transient response returns a body without a parent field (undefined), which falsely satisfies .toBeFalsy() and exits the poll before the async move completes. * revert(playwright): remove redundant subdomain waitForSearchIndexed in SubDomainPagination checkSubDomainCount already polls the UI count with a 120s timeout and page reloads, so the parallel waitForSearchIndexed for 60 subdomains in beforeAll was unnecessary and only slowed setup. * fix(playwright): wait for domain dropdown to close in openDataProductDrawer After clicking a domain option in the Ant Design Select, the dropdown overlay lingers briefly during its close animation. The next click (on the Glossary Terms TreeSelect trigger) was being intercepted by that overlay, preventing the tree popover from opening. Wait for the selected domain title to appear in the selector before returning — this confirms the dropdown has fully closed. * refactor(playwright): shorten comments to one-liners * fix(playwright): wait for domain dropdown to close in openDataProductDrawer * fix(playwright): wait for domain dropdown to close in openDataProductDrawer * style(playwright): format domain.ts to satisfy Prettier line-length * fix: add domain filter to GlossaryResource list endpoint (open-metadata#31971) * fix: add domain filter to Glossary list endpoint * fix: handle empty domain filter and add regression IT for glossary domain listing - Skip the filter for a null/empty ?domain= instead of resolving an empty FQN (which 404s), matching ServiceEntityResource/DataProductResource - Add GlossaryResourceIT#test_listGlossaries_domainFilter covering in-domain/out-of-domain scoping and the empty-domain regression * test: make glossary domain-filter IT pagination-safe - Set an explicit high limit on the list calls so a busy shared IT instance cannot page a target glossary out of the asserted results - Drop comments that restated the assertions; keep the empty-domain rationale * test: split glossary domain-filter IT into focused cases - One nameable behaviour per test (in-domain include, other-domain exclude, empty-domain unfiltered) via a shared seedGlossaryInDomain helper - final locals; keeps the explicit high limit so results stay deterministic --------- Co-authored-by: sonika-shah <58761340+sonika-shah@users.noreply.github.com> * chore(playwright): lower no-positional-locator corpus count 1175→1173 after main merge Two additional positional-locator suppressions were removed by PRs that landed in main after the last sync; the recorded global total must match the live suppression count exactly. --------- Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Harsh Vador <58542468+harsh-vador@users.noreply.github.com> Co-authored-by: Sweta Agarwalla <105535990+sweta1308@users.noreply.github.com> Co-authored-by: Arvin <31638790+zhang-arvin@users.noreply.github.com> Co-authored-by: sonika-shah <58761340+sonika-shah@users.noreply.github.com>
Describe your changes:
Fixes #33502
I moved the AI-mode observability e2e suite into OSS because the code it covers is already here. The AI shell and the observability module moved to OSS in #31911, and #33681 moves the
/observabilitylink prefixing too — so the tests were the only part still living incollate-ui.Seven specs land in
playwright/e2e/Features/AIMode/, next to theCustomPropertiesPanelspec migrated earlier. Their imports already pointed almost entirely at the OSS tree, so the move is mostly dropping thesrc/openmetadata-ui/playwright/prefix.Two helpers come across into
e2e/Utils/appMode.ts:redirectToAiModeHomePageandexpandAiSubPanel. Both shed their AskCollate-only parts — the chat query-cache clear and thechatConversationsbootstrap wait — andObservabilityPermissionsnow waits onask-sidebarto confirm the shell booted instead.The matching Collate-side deletion is open-metadata/openmetadata-collate#6749.
Type of change:
High-level design:
What stays in Collate. Pipeline observability pages are still Collate-only —
observability.module.tsxsays so in a comment and has no route for them, serving/observability/pipeline*through the app-mode fallback (CollateRouter). So the four pipeline tests scattered across the moved files are collected into onePipelineObservability/PipelineObservabilityAiMode.spec.tson the Collate side rather than left behind in seven hollowed-out files.Test accounting reconciles. The originals were 42 runtime tests (38
test()calls; one parametrised loop expands to 5). Now 39 in OSS + 4 in Collate = 43. The extra one is the breadcrumb test, which originally looped over alerts and pipeline — only alerts could move, so it is split in two. Nothing was dropped.Lint. OSS's Playwright guardrails are stricter than Collate's and
eslint-suppressions.jsonmay shrink but never grow, so the 14 violations that came across are handled inline. Most are positional by intent — the breadcrumbnth(1)is the assertion,thead th.first()is the name column — so they carry the repo's documented escape hatch: a disable naming the rule with a-- why. Rewriting those locators would have changed what they assert. OneBuffer.comparebecame a base64 comparison, which this repo's@types/nodeaccepts.Tests:
Use cases covered
This PR is test coverage. Moved as-is: AI-mode observability page rendering and navigation, Test Library add/edit test definition, data-quality tab navigation, internal routing into the AI shell, test case detail breadcrumb origin, the test case edit modal, layout invariants (card heights, column widths, modal stacking), filter controls, and observability sub-nav permissions.
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
All 39 migrated tests were executed against a local stack, not just listed —
PLAYWRIGHT_TEST_BASE_URL=http://localhost:3017 playwright test --project=chromium --no-deps --workers=1:AIMode/Observability.spec.tsAIMode/TestCaseBreadcrumb.spec.tsAIMode/TestCaseEdit.spec.tsAIMode/ObservabilityLayout.spec.tsAIMode/ObservabilityPermissions.spec.tsAIMode/ObservabilityClickPaths.spec.tsAIMode/ObservabilityFilters.spec.tsThat covers the two places where behaviour changed rather than just paths — the
ObservabilityPermissionsentry rewrite and the base64 screenshot comparison inObservabilityLayout— both pass.Also clean:
yarn tsc:playwright(no errors in the moved files) andyarn lint:playwright(0 errors, suppressions baseline untouched).Manual testing performed
:3017playwright test --listenumerates every moved spec, confirming each file parses and registersUI screen recording / screenshots:
Not applicable — no product code changes. The UI behaviour these specs cover is demonstrated on #33681.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code
The PR is not yet safe to merge because suite-level fixture creation and cleanup still use API contexts derived from fresh, unauthenticated pages.
Findings
Summary
This PR migrates the AI-mode observability Playwright coverage into OSS, adds shared AI-mode navigation helpers, and updates generated Playwright impact and timing metadata.
Observability.spec.ts.Reviews (5) · Last reviewed commit: "chore(playwright): auto-refresh impact-m..."