diff --git a/.github/playwright/impact-map.generated.json b/.github/playwright/impact-map.generated.json index 011d650828d4..12019365a5df 100644 --- a/.github/playwright/impact-map.generated.json +++ b/.github/playwright/impact-map.generated.json @@ -154,6 +154,7 @@ "playwright/e2e/Pages/SearchIndexApplication.spec.ts", "playwright/e2e/Pages/SearchSettings.spec.ts", "playwright/e2e/Pages/SubDomainPagination.spec.ts", + "playwright/e2e/Pages/TableAliases.spec.ts", "playwright/e2e/Pages/TestSuite.spec.ts", "playwright/e2e/Pages/TestSuiteDetailsPage.spec.ts", "playwright/e2e/Pages/UserCreationWithPersona.spec.ts", @@ -453,7 +454,6 @@ "playwright/e2e/Features/SampleDataDomainDataProduct.spec.ts", "playwright/e2e/Features/Table.spec.ts", "playwright/e2e/Features/UserProfileOnlineStatus.spec.ts", - "playwright/e2e/Features/Workflows/RecognizerFeedbackSchemaNodeLock.spec.ts", "playwright/e2e/Features/Workflows/WorkflowOssRestrictions.spec.ts", "playwright/e2e/Flow/Collect.spec.ts", "playwright/e2e/Flow/CustomizeWidgets.spec.ts", @@ -730,6 +730,7 @@ "playwright/e2e/Pages/LogsViewer.spec.ts", "playwright/e2e/Pages/ODCSImportExport.spec.ts", "playwright/e2e/Pages/ODCSImportExportPermissions.spec.ts", + "playwright/e2e/Pages/TableAliases.spec.ts", "playwright/e2e/Pages/TestSuite.spec.ts", "playwright/e2e/Pages/TestSuiteDetailsPage.spec.ts", "playwright/e2e/Pages/UserCreationWithPersona.spec.ts" @@ -1641,6 +1642,7 @@ "playwright/e2e/Pages/ODCSImportExport.spec.ts", "playwright/e2e/Pages/ODCSImportExportPermissions.spec.ts", "playwright/e2e/Pages/SearchSettings.spec.ts", + "playwright/e2e/Pages/TableAliases.spec.ts", "playwright/e2e/Pages/TagPageRightPanel.spec.ts", "playwright/e2e/Pages/Tags.spec.ts", "playwright/e2e/Pages/TaskComments.spec.ts", @@ -2373,6 +2375,7 @@ "playwright/e2e/Pages/TagPageRightPanel.spec.ts", "playwright/e2e/Pages/Tags.spec.ts", "playwright/e2e/Pages/TeamAssetsRightPanel.spec.ts", + "playwright/e2e/Pages/Users.spec.ts", "playwright/e2e/VersionPages/ClassificationVersionPage.spec.ts" ] }, @@ -2428,6 +2431,7 @@ "playwright/e2e/Features/Tasks/TaskResolution.spec.ts", "playwright/e2e/Features/Tasks/TeamActivity.spec.ts", "playwright/e2e/Features/TeamSubscriptions.spec.ts", + "playwright/e2e/Features/TeamsHierarchy.spec.ts", "playwright/e2e/Flow/PersonaFlow.spec.ts", "playwright/e2e/Pages/DataContractsSemanticRules.spec.ts", "playwright/e2e/Pages/DomainAdvanced.spec.ts", @@ -2717,6 +2721,7 @@ "playwright/e2e/Features/ExploreSortOrderFilter.spec.ts", "playwright/e2e/Features/FailedTestCaseSampleData.spec.ts", "playwright/e2e/Features/Glossary/GlossaryApprovalAfterMove.spec.ts", + "playwright/e2e/Features/Glossary/GlossaryDisplayNameEdit.spec.ts", "playwright/e2e/Features/Glossary/GlossaryInheritedReviewerApproval.spec.ts", "playwright/e2e/Features/Glossary/GlossaryPersonaCustomization.spec.ts", "playwright/e2e/Features/Glossary/GlossaryWorkflow.spec.ts", @@ -2815,6 +2820,7 @@ "playwright/e2e/Pages/ProfilerConfigurationPage.spec.ts", "playwright/e2e/Pages/SearchSettings.spec.ts", "playwright/e2e/Pages/ServiceEntity.spec.ts", + "playwright/e2e/Pages/TableAliases.spec.ts", "playwright/e2e/Pages/Tag.spec.ts", "playwright/e2e/Pages/TagPageRightPanel.spec.ts", "playwright/e2e/Pages/TaskFormSettings.spec.ts", @@ -3231,6 +3237,7 @@ "playwright/e2e/Pages/ServiceEntity.spec.ts", "playwright/e2e/Pages/ServiceListing.spec.ts", "playwright/e2e/Pages/SubDomainPagination.spec.ts", + "playwright/e2e/Pages/TableAliases.spec.ts", "playwright/e2e/Pages/Tag.spec.ts", "playwright/e2e/Pages/TagPageRightPanel.spec.ts", "playwright/e2e/Pages/Tags.spec.ts", @@ -3646,6 +3653,7 @@ "playwright/e2e/Pages/Roles.spec.ts", "playwright/e2e/Pages/SearchSettings.spec.ts", "playwright/e2e/Pages/SubDomainPagination.spec.ts", + "playwright/e2e/Pages/TableAliases.spec.ts", "playwright/e2e/Pages/Tag.spec.ts", "playwright/e2e/Pages/Tags.spec.ts", "playwright/e2e/Pages/Teams.spec.ts", @@ -4054,6 +4062,7 @@ ], "specs": [ "playwright/e2e/Features/BulkEditEntity.spec.ts", + "playwright/e2e/Features/OnlineUsers.spec.ts", "playwright/e2e/Pages/Teams.spec.ts" ] }, @@ -4286,7 +4295,8 @@ "playwright/e2e/Pages/DataProducts.spec.ts", "playwright/e2e/Pages/Domains.spec.ts", "playwright/e2e/Pages/Tag.spec.ts", - "playwright/e2e/Pages/Tags.spec.ts" + "playwright/e2e/Pages/Tags.spec.ts", + "playwright/e2e/Pages/Users.spec.ts" ] }, { @@ -7761,6 +7771,7 @@ "openmetadata-ui/src/main/resources/ui/src/components/Settings/Users/UsersProfile/UserProfileTeams/UserProfileTeams.component.tsx" ], "specs": [ + "playwright/e2e/Features/TeamsHierarchy.spec.ts", "playwright/e2e/Pages/Teams.spec.ts", "playwright/e2e/Pages/UserDetails.spec.ts" ] @@ -8729,7 +8740,8 @@ "openmetadata-ui/src/main/resources/ui/src/components/common/OwnersSection/OwnersSection.tsx" ], "specs": [ - "playwright/e2e/Pages/ExplorePageRightPanel.spec.ts" + "playwright/e2e/Pages/ExplorePageRightPanel.spec.ts", + "playwright/e2e/Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts" ] }, { @@ -9204,6 +9216,7 @@ "playwright/e2e/Pages/DomainUIInteractions.spec.ts", "playwright/e2e/Pages/Domains.spec.ts", "playwright/e2e/Pages/Glossary.spec.ts", + "playwright/e2e/Pages/Lineage/LineageInteraction.spec.ts", "playwright/e2e/Pages/Lineage/LineageRightPanel.spec.ts", "playwright/e2e/Pages/Policies.spec.ts", "playwright/e2e/Pages/Roles.spec.ts", @@ -9840,6 +9853,7 @@ "playwright/e2e/Pages/ServiceEntity.spec.ts", "playwright/e2e/Pages/ServiceListing.spec.ts", "playwright/e2e/Pages/SubDomainPagination.spec.ts", + "playwright/e2e/Pages/TableAliases.spec.ts", "playwright/e2e/Pages/Tag.spec.ts", "playwright/e2e/Pages/TagPageRightPanel.spec.ts", "playwright/e2e/Pages/Tags.spec.ts", @@ -10726,6 +10740,14 @@ "playwright/e2e/Flow/ApiDocs.spec.ts" ] }, + { + "sources": [ + "openmetadata-ui/src/main/resources/ui/src/pages/TableDetailsPageV1/TableAliases/TableAliases.component.tsx" + ], + "specs": [ + "playwright/e2e/Pages/TableAliases.spec.ts" + ] + }, { "sources": [ "openmetadata-ui/src/main/resources/ui/src/pages/TableDetailsPageV1/TableConstraints/TableConstraints.tsx" diff --git a/openmetadata-ui/src/main/resources/ui/eslint-suppressions.json b/openmetadata-ui/src/main/resources/ui/eslint-suppressions.json index 2026be488945..fe50365481fc 100644 --- a/openmetadata-ui/src/main/resources/ui/eslint-suppressions.json +++ b/openmetadata-ui/src/main/resources/ui/eslint-suppressions.json @@ -184,7 +184,7 @@ }, "playwright/e2e/Features/DataQuality/TableLevelTests.spec.ts": { "om-playwright/no-positional-locator": { - "count": 10 + "count": 9 } }, "playwright/e2e/Features/DataQuality/TestCaseImportExportBasic.spec.ts": { @@ -387,7 +387,7 @@ }, "playwright/e2e/Features/PersonaAIContextRules.spec.ts": { "om-playwright/no-positional-locator": { - "count": 10 + "count": 8 } }, "playwright/e2e/Features/QueryEntity.spec.ts": { @@ -752,7 +752,7 @@ }, "playwright/e2e/Pages/Lineage/LineageInteraction.spec.ts": { "om-playwright/no-positional-locator": { - "count": 2 + "count": 1 } }, "playwright/e2e/Pages/LiveIndexingTab.spec.ts": { diff --git a/openmetadata-ui/src/main/resources/ui/playwright/QUARANTINE.md b/openmetadata-ui/src/main/resources/ui/playwright/QUARANTINE.md index af461829dad2..012feffa48f0 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/QUARANTINE.md +++ b/openmetadata-ui/src/main/resources/ui/playwright/QUARANTINE.md @@ -27,29 +27,53 @@ coverage, a retried one looks green. ## Entries -9 tests. Evidence is failures observed across 11 merge_group runs sampled on +4 tests. Most evidence is failures observed across 11 merge_group runs sampled on 2026-09-04; the threshold for quarantining is **2 or more**, counted per generated variant rather than per source line. | Spec | Test | Seen | Symptom | |---|---|---|---| -| `e2e/Pages/Lineage/LineageInteraction.spec.ts` | Verify node panel opens on click | 11/11 | `clickLineageNode` → `entity-header-display-name` never visible (15s). The topic node is not in the graph the `beforeEach` renders. | -| `e2e/Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts` | Should remove user owner for knowledgeCenter | 11/11 | `entity-summary-panel-container` → owner chip not found (10s). Regressed around #31853, which removed the welcome-banner dismiss helpers. | -| `e2e/Features/PersonaAIContextRules.spec.ts` | knowledge entity type forces Fully rendered on and disables it | 7/11 | Test timeout. | -| `e2e/Features/Table.spec.ts` | should persist page size | 6/11 | Test timeout after `waitForAllLoadersToDisappear`. | +| `e2e/Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts` | Should remove user owner for knowledgeCenter | 1/1 | Re-quarantined 2026-09-10 on fresh evidence, not the 2026-09-04 sample. The 11/11 failure it was first tagged for was real and is fixed (`openEntitySummaryPanel` waited for the NavBar `searchBox` on a page that renders `ExploreSearchInput`), but releasing it surfaced a second cause underneath. In PR #33054 it failed its first attempt and passed on retry: `expectOwnerInPanel` polled for the owner chip for the full 60s, re-navigating between attempts, and never saw it — even though `addOwnerInKCPanel` had already awaited the PATCH, so the owner was persisted. That is the *original* recorded symptom (owner chip not found), so the panel's read path lags the write rather than the navigation being wrong. A longer poll is not the fix; find what the panel reads and wait on that. | | `e2e/Pages/TestSuiteDetailsPage.spec.ts` | Add test case modal — filters and select | 3/11 | `waitForResponse` on the test-case search never resolves. | | `e2e/Features/Glossary/GlossaryHierarchy.spec.ts` | should move term to root of different glossary | 2/11 | Drag-and-drop. | | `e2e/Features/DataQuality/TableLevelTests.spec.ts` | Table Difference | 2/11 | | -| `e2e/Features/ActivityStream.spec.ts` | activity stream API is called when visiting entity page | 2/11 | | -`PLAYWRIGHT_RUN_QUARANTINED=true` selects these 9 plus the 7 setup/teardown +### Triage, 2026-09-09 + +All three were run against a local stack (current UI via the Vite dev server, +`--repeat-each=3`) and all three passed 3/3, well inside their budgets: the test +suite modal at 12-21s under a `test.slow()` timeout, Table Difference at +10-19s, the glossary drag at 6-7s. Their recorded rates are 3/11 and 2/11, so +this is the expected result rather than a contradiction — these are +load-dependent and an idle laptop does not reproduce them. **More local runs +will not settle them** — but neither will waiting for CI: nothing under +`.github/` sets `PLAYWRIGHT_RUN_QUARANTINED`, so a quarantined test runs in no +lane at all and has produced no evidence since it was tagged. The soak lane this +file describes does not exist. Getting these three moving needs that lane (or a +one-off dispatch) first. + +One unverified lead, for whoever picks up the test suite entry: its recorded +symptom is a `waitForResponse` that never resolves, and every listener in +`utils/addTestCaseList.ts` is correctly hoisted above the action that triggers +it — so a missed-because-registered-late response is not the cause. +`addTestCaseListFilterByFirstColumn` is the one that can genuinely never see its +request: it picks the Column dropdown's first `menuitem` and then waits for a +`testCases/search/list` carrying `columnName`. If the dropdown is still +populating, the first menuitem is not yet a real column, and the update it +submits produces a request without `columnName`. `addTestCaseListResetFilters` +repeats the same `.first()` menuitem pick. Confirm against a CI trace before +changing anything. + +`PLAYWRIGHT_RUN_QUARANTINED=true` selects these 4 plus the 7 setup/teardown fixture projects, which the soak lane deliberately leaves unfiltered so login and entity seeding still happen — a project-level `grep` *is* applied to dependency projects, so filtering them would make every quarantined test fail for want of `admin.json` instead of for its flake. Re-run `npx playwright test --list` after changing this file and update the -default-lane count here; it was 4543 of 4555 when the list held 13 entries. +default-lane count here. It is **4576 of 4580** with these 4 entries; the +quarantined lane lists 11, which is the 4 plus the 7 fixture projects above. +(It was 4543 of 4555 when the list held 13.) ## Not quarantined — fixed instead @@ -58,6 +82,9 @@ they were repaired rather than parked: | Spec | Root cause | |---|---| +| `e2e/Features/ActivityStream.spec.ts` — activity stream API is called when visiting entity page | Released without a code change: 3/3 green locally, and no load-dependent symptom was ever recorded for it. | +| `e2e/Features/Table.spec.ts` — should persist page size | Released without a code change: 3/3 green locally. Its recorded symptom (timeout after `waitForAllLoadersToDisappear`) is load-dependent, so local runs are weak evidence — re-tag it if it ejects a PR. No mechanism was identified for why it now passes. | +| `e2e/Pages/Lineage/LineageInteraction.spec.ts` — Verify node panel opens on click | Two causes, and the symptom recorded here was only the second. (1) `fitToScreen` returned before its menu popover finished its exit animation, leaving a second `[role="dialog"]` in the DOM, so the test's unscoped `[role="dialog"]` assertion tripped strict mode. (2) `Verify edge delete button in drawer` deletes the shared `table1 → topic` edge and never restores it, so every later test in the file saw a graph without the topic — that is the "node is not in the graph" symptom. Fixed by having `fitToScreen` wait for the menu to detach, scoping the assertion to `lineage-entity-panel`, and restoring the edge in a `finally`. | | `e2e/Pages/Glossary.spec.ts` 128 / 198 / 421 | `utils/glossary.ts` used `page.textContent()` — waits for the element, not its text — so a cold first attempt read `""`. #32333 (a revert of #30896) had reintroduced this after it was already fixed. Restored to `toContainText`. | | `e2e/Features/ContextCenterArticles.spec.ts:670` | #32283 removed a `waitForTimeout(500)` that was covering the zustand → localStorage flush of `recentlyViewed`. Navigating away before the flush meant the Recently Viewed panel had no entry to render, so the trailing assertion had nothing to auto-wait for. Replaced with `waitForRecentlyViewed`, which polls the persisted store. | | `e2e/Features/ClassificationImportExport.spec.ts:64` | `beforeAll` POSTed fixtures whose names were generated at module scope, so a second pass in the same worker 409'd on every create. Fixtures are now rebuilt inside `beforeAll`, and an `afterAll` was added — the spec previously leaked two classifications, a tag and a user into the shard on every run. | @@ -73,6 +100,7 @@ entry. | `e2e/Pages/EntityDataConsumer.spec.ts` | Update description (Table) | `updateDescription` resolved the editor with a page-global `descriptionBox` and `.first()`, so with the edit modal open it targeted the inline editor *behind* the overlay — visible, so the assertion passed, then the click failed on `ant-modal-wrap ... intercepts pointer events` until the test timed out. Now scoped to the dialog, asserting a single match. | | `e2e/Features/DataQuality/TestLibrary.spec.ts` | should create, edit, and delete a test definition | `TestDefinitionFormBody` rebuilt `options: toOptions(Object.values(…))` on every render. Focusing a field re-renders it via `onActiveFieldChange`, and the new `items` identity made react-aria rebuild the listbox collection, detaching the option mid-click. The option lists are enum-derived and now built once at module scope. | | `e2e/Features/DataQuality/TestLibrary.spec.ts` | should maintain page on edit and reset to first page on delete | Same select-option path as above. | +| `e2e/Features/PersonaAIContextRules.spec.ts` | knowledge entity type forces Fully rendered on and disables it | The evidence was already stale when it was written down. Every test in the file reached its subject through `navigateToAIContextTab`, which called `navigateToPersonaWithPagination` — a walk of up to 15 pages, each costing a `waitForAllLoadersToDisappear`, a `next` click and a `/api/v1/personas*` round trip, before the test touched anything it was asserting on. That is the timeout, and it is why the rate tracked shard load (7/11) rather than being deterministic: the walk grows with the personas the shard has accumulated. #32458 then moved the editor into Context Center on 2026-09-07, replacing the whole walk with `goto('/context-center/ai-context')` plus one card click, and made the list page follow its cursor to exhaustion server-side. Green 9/9 locally at ~5s against a 60s budget. | | `e2e/Features/Glossary/GlossaryHierarchy.spec.ts` | should cancel drag and drop operation | `dragAndDropTerm` pressed at coordinates computed before the glossary page finished hydrating — the description block lands last and pushes every row down about a row height — and `force: true` skipped the actionability check that would have waited. It now holds both rows still before pressing. | ## Left running deliberately diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityStream.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityStream.spec.ts index 18cf763c7ef2..d402d713a919 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityStream.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityStream.spec.ts @@ -14,7 +14,10 @@ import { TableClass } from '../../support/entity/TableClass'; import { expect, test as base } from '../../support/fixtures/base'; import { UserClass } from '../../support/user/UserClass'; -import { insertActivityEventForTest } from '../../utils/activityAPI'; +import { + insertActivityEventForTest, + visitTableActivityFeed, +} from '../../utils/activityAPI'; import { performAdminLogin } from '../../utils/admin'; import { uuid } from '../../utils/common'; import { waitForAllLoadersToDisappear } from '../../utils/entity'; @@ -227,37 +230,14 @@ test.describe('Activity Stream on Entity Pages', () => { await expect(countBadge).toHaveText(/^[1-9]\d*$/, { timeout: 30_000 }); }); - test( - 'activity stream API is called when visiting entity page', - { tag: '@quarantine' }, - async ({ page }) => { - const activityApiPromise = page - .waitForResponse( - (response) => - response.url().includes('/api/v1/activity') && - response.status() === 200, - { timeout: 10000 } - ) - .catch(() => null); - - await testTable.visitEntityPage(page); - await waitForAllLoadersToDisappear(page); - - const activityFeedTab = page.getByRole('tab', { - name: 'Activity Feeds & Tasks', - }); - await activityFeedTab.click(); - - const response = await activityApiPromise; - - if (response) { - const responseBody = await response.json(); - - expect(responseBody).toHaveProperty('data'); - expect(Array.isArray(responseBody.data)).toBe(true); - } - } - ); + test('activity stream API is called when visiting entity page', async ({ + page, + }) => { + const responseBody = await visitTableActivityFeed(page, testTable); + + expect(responseBody).toHaveProperty('data'); + expect(Array.isArray(responseBody.data)).toBe(true); + }); test('activity feed left panel shows All and Tasks options', async ({ page, diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TableLevelTests.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TableLevelTests.spec.ts index 56c9ebeb9dd4..d1311d42db62 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TableLevelTests.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TableLevelTests.spec.ts @@ -873,12 +873,10 @@ test.describe( .getByTestId('code-mirror-container') .getByRole('textbox') .fill(testCase.sqlQuery); - await page.click('#testCaseFormV1_params_strategy'); - await page - .getByRole('option') - .filter({ hasText: 'ROWS' }) - .first() - .click(); + await selectOptionWithRetry( + page.locator('#testCaseFormV1_params_strategy'), + page.getByRole('option', { name: 'ROWS' }) + ); await page.fill('#testCaseFormV1_params_threshold', '23'); await submitTestCaseForm(page); diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TestLibrary.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TestLibrary.spec.ts index f18f8a5cee4a..09bf88b3b56e 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TestLibrary.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/TestLibrary.spec.ts @@ -28,6 +28,8 @@ const UPDATE_TEST_DEFINITION_DISPLAY_NAME = `Aaro Updated Custom Test Definition const TEST_DEFINITION_DESCRIPTION = 'Aaro This is a custom test definition for E2E testing'; +// Only for the multi-select combobox — its popup is typing-driven, so +// selectOptionWithRetry's aria-expanded guard does not apply. const selectOptionWithMouse = async (page: Page, option: Locator) => { await expect(option).toBeVisible(); @@ -44,26 +46,18 @@ const selectOptionWithMouse = async (page: Page, option: Locator) => { ); }; -// React Aria's listbox is a non-modal popover, and a press on a trigger that -// does not already hold focus both opens it and — via the focus transition that -// same press produces — dismisses it a frame later. That leaves roughly 160ms to -// pick an option, and nothing reopens the listbox afterwards, so a loaded runner -// that misses the window retries the option click until the test times out. -// Focusing the trigger first removes the transition, and with it the window. +// Assert on the trigger, never on the Select root: the root also holds React +// Aria's hidden