Repository navigation
test(playwright): port remaining clean specs/utils from #33088; fix TeamsPage stale-team merge - #34094
Conversation
…eamsPage stale-team merge Takes every Playwright file from harshach/debug-merge-queue that merges cleanly onto main (Tasks batch, remaining specs, support/utils, browser-tests), using the merged-with-main version of each file. Specs that only compile against source-branch utils (DataContractsSemanticRules, Pagination, Tasks/DomainFiltering) and indexedDbStorage (needs #33933's patch script) stay on main. playwright.config.ts stays on main (retries/merge-queue changes). TeamsPage: only merge a fetched team into the selected one when it is the same team, so switching teams no longer carries fields over from the previous one. Fixes #33087 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
✅ 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 |
|
✅ SSO Login Nightly — PASSED View workflow run · Commit
Totals: 79 passed · 0 failed · 0 flaky · 0 skipped · duration 19m 38s |
TaskCreation, TaskDashboardEntity, PersonaFlow, GlossaryP2Tests, DataQualityDashboard and AuditLogs failed deterministically against main's UI; back to main with their suppression entries. Fixes #33087 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
🔄 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 |
The merge from harshach/debug-merge-queue kept imports that the source branch appended after code in 10 files. organize-imports then sorted them in place. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…-remaining-pw-batch # Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
The source-branch version screenshots a seeded glossary created by visual-regression.setup.ts, which is not part of this port, so the page 404s and the header never renders. main's version visits /glossary directly. Fixes #33087 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…-remaining-pw-batch # Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/PersonaAIContext.spec.ts
🔄 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 |
…-remaining-pw-batch # Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/UserDetails.spec.ts # openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
| }).toPass({ timeout: 15000 }); | ||
| }; | ||
|
|
||
| export const chooseSelectOption = async (trigger: Locator, option: Locator) => { |
There was a problem hiding this comment.
chooseSelectOption is the more reliable of the two select helpers, but now that both exist, a few suggestions:
Why it beats selectOptionWithRetry: callers pass the component's data-testid, which core Select spreads onto the react-aria root div (select.tsx → <AriaSelect {...rest}>). aria-expanded lives on the inner trigger Button, so selectOptionWithRetry's trigger.getAttribute('aria-expanded') is always null. On every retry it re-clicks the trigger, which closes a popover that is still open. The retries alternate open/close and burn the budget. Resolving the nested input[role=combobox] / button[aria-haspopup=listbox] here fixes that, and ArrowDown opens a focused ComboBox reliably where a click does not.
Suggestions:
- Call
scrollIntoViewAndSettle(control)before opening (the helper directly above). As written, the first attempt can still be closed by react-aria'suseCloseOnScrollwhen Playwright scrolls during actionability; the comment relies on the retry converging. Centering first prevents the close instead of recovering from it. - Lower the option click timeout (line 1968) from
5_000to ~2_000. When the popover is dismissed mid-click, the option is detached and each attempt waits the full 5s before reopening; 2s (whatselectOptionWithRetryuses) recovers faster within the 30s budget. - Two helpers now do the same job. Please migrate the remaining
selectOptionWithRetrycallers and delete it, here or in a tracked follow-up.e2e/Utils/aiAlertModal.ts:124passes a customopen, which this helper already covers via the comboboxArrowDownbranch.
There was a problem hiding this comment.
Thanks, agreed on the diagnosis.
- Done in 16ecbbf:
scrollIntoViewAndSettle(control)runs before each open, so the actionability scroll no longer closes the popover. The retry stays for dismissals from anything else. - Done: option click timeout lowered to 2s.
- Proposing a follow-up rather than doing it here:
selectOptionWithRetrystill has callers in 10 files (pagination, customProperty, lineage and domain utils, plus 5 specs ande2e/Utils/aiAlertModal.ts), all already on main. Moving them in this PR would widen it into specs it doesn't otherwise touch. I'll open a separate PR that migrates them and deletesselectOptionWithRetry. Does that work for you?
There was a problem hiding this comment.
Update on (3): we've decided not to migrate or delete selectOptionWithRetry, so there won't be a follow-up PR for it. Both helpers stay; (1) and (2) are in 16ecbbf.
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| import { APIRequestContext, Page } from '@playwright/test'; |
There was a problem hiding this comment.
This fixture isn't imported anywhere at the PR head (git grep fixtures/taskPermissions returns nothing). The description lists it under the Tasks batch alongside TaskCreation, but neither TaskCreation.spec.ts nor TaskPermissions.spec.ts is in the diff; it looks like those specs were reset to main in 44cf772 and this file was left behind. Could we drop it, or include the spec that uses it?
There was a problem hiding this comment.
Dropped in 16ecbbf. You're right: TaskCreation/TaskPermissions were reset to main in 44cf772 and this fixture was left behind. I also re-swept every export this PR adds under playwright/utils|support|constant for callers. This fixture, selectTaskStatusFilter and waitForAriaModalToSettle were the only orphans.
| * renders; the option is then permanently unclickable. Clearing the hover first | ||
| * and letting the menu finish growing is what makes the choice land. | ||
| */ | ||
| export const selectTaskStatusFilter = async ( |
There was a problem hiding this comment.
selectTaskStatusFilter has no callers at the PR head. Probably the same cause as the orphaned support/fixtures/taskPermissions.ts (its spec was reset to main). Suggest removing it until a spec needs it.
There was a problem hiding this comment.
Removed in 16ecbbf (same cause as the taskPermissions fixture).
| .getByTestId('tag-' + dataProduct.fullyQualifiedName); | ||
| }; | ||
|
|
||
| export const waitForAriaModalToSettle = async (page: Page) => { |
There was a problem hiding this comment.
waitForAriaModalToSettle has no callers at the PR head (the Antd variant below is used; this one isn't). Suggest removing it until a spec needs it.
There was a problem hiding this comment.
Removed in 16ecbbf. waitForAntdModalToSettle stays, since it has callers.
…SelectOption - Remove support/fixtures/taskPermissions.ts, selectTaskStatusFilter and waitForAriaModalToSettle: their specs were reset to main, so nothing uses them. - chooseSelectOption centres the control before opening (prevents the useCloseOnScroll dismissal instead of recovering from it) and uses a 2s option click so a detached option reopens quickly. - NestedChildrenUpdates.spec.ts: take main's #34157 fix. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
| const { | ||
| page, | ||
| const { apiContext, pipeline, successTimeout = 300_000 } = data; | ||
| const startedAfter = await triggerIngestionPipeline(apiContext, pipeline.id); |
There was a problem hiding this comment.
This drops main's handling of the Airflow 3 deploy/trigger race. Main's version of triggerTestSuitePipelineAndWaitForSuccess (~200 lines) handled three things this 15-line version no longer does:
- Rejected trigger: main retried with backoff (1s/2s/3s), then re-deployed and triggered again.
triggerIngestionPipelinedoes a single POST and throws on any non-OK response. - Empty-run race: Airflow 3.x returns 200 for a trigger on a freshly deployed DAG that the dag-processor hasn't serialized yet. The resulting DagRun finishes instantly and writes either no
pipelineStatus, or a transientqueuedone that then vanishes. Main'swaitForNewRunToAppearwaited up to 60s for a run that had leftqueued, and re-triggered up to 3 times if none appeared. - Baseline read: main read the previous run before triggering, so the poll could not pick up a stale
success.
waitForIngestionResult never re-triggers, so in the race case it either polls the full 300s with "no execution after trigger", or throws Execution … disappeared from pipeline status once the queued run vanishes.
The caller hits exactly this window: IncidentManager.spec.ts:474-483 deploys, then calls this with no delay. When the race hits, the beforeAll fails and takes the whole IncidentManager suite with it. For comparison, main's other deploy-then-trigger path (BundleTestSuiteClass.runIngestionPipeline) at least waits a readiness delay and retries the trigger, so after this change IncidentManager has less protection than either path on main.
It is intermittent, so a green run here doesn't rule it out. Could we keep main's version of this helper (the PR description's own rule: reset to main rather than patch)?
There was a problem hiding this comment.
Agreed. incidentManager.ts is back to main in 54c22fe, so triggerTestSuitePipelineAndWaitForSuccess has the trigger backoff and redeploy, the empty-run re-trigger and the baseline read again.
I also scanned every util this PR changes for functions shrunk to under half of main's size, and reverted two more of the same kind in the same commit:
visitObservabilityAlertPage: restored main's retry for a sidebar click that's dispatched but never navigates. The rest ofobservabilityAlert.tsstays becauseObservabilityAlerts.specuses its newdestinationEndpointoption.taskWorkflow.ts: back to main.openTaskEditModalhad been cut down to the source branch's task UI, and the Task specs in this PR are main's.
checkAutoPilotStatus stays as the port: it's a deliberate redesign (filters to runs started after this trigger, fails fast on Failure/Exception/Superseded) that the ported AutoPilot.spec depends on.
…ask-modal helpers Review follow-up. The source-branch versions dropped robustness main relies on: - incidentManager.ts: triggerTestSuitePipelineAndWaitForSuccess lost the Airflow 3 deploy/trigger race handling (trigger backoff + redeploy, empty-run re-trigger, baseline read). Back to main. - visitObservabilityAlertPage: restore main's retry for a sidebar click that is dispatched but never navigates. - taskWorkflow.ts: openTaskEditModal was reduced to the source branch's task UI; the Task specs here are main's, so keep main's helper. Fixes #33087 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
main's taskWorkflow.ts carries existing no-positional-locator violations that main's baseline suppresses; record them here and update the corpus counts. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
| Count | Rule |
|---|---|
| 5 | react-hooks/exhaustive-deps |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/pages/TeamsPage/TeamsPage.tsx:138:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/pages/TeamsPage/TeamsPage.tsx:296:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/pages/TeamsPage/TeamsPage.tsx:537:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchTeamBasicDetails' and 'loadAdvancedDetails'. Either include them or remove the dependency array. |
| 🟡 | src/pages/TeamsPage/TeamsPage.tsx:549:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchAllTeamsBasicDetails', 'fqn', and 'hasViewPermission'. Either include them or remove the dependency array. |
| 🟡 | src/pages/TeamsPage/TeamsPage.tsx:555:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchAllTeamsAdvancedDetails'. Either include it or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
🚦 Removed from the merge queue —
|
…-remaining-pw-batch # Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
Code Review 👍 Approved with suggestions 1 closed / 2 findings🟡 Medium risk · Broad Playwright helper and test updates plus a localized Teams selection behavior fix. Ports 103 Playwright test files and UI utilities from the clean-merge batch, fixing 💡 Quality: Alerts-list response status no longer asserted; GET filter dropped📄 openmetadata-ui/src/main/resources/ui/playwright/utils/observabilityAlert.ts:64-74 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/observabilityAlert.ts:90 The old helper checked that the Restore the GET filter and the status check✅ 1 closed✅ Bug: Commit-race test runs against unpatched installed Playwright
🤖 Prompt for agentsOptionsDisplay: 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 |
|



Fixes #33087
Describe your changes
Final sweep of #33088 (
harshach/debug-merge-queue). I trial-merged the branch onto current main and took every file that merges cleanly, using the merged-with-main version of each file rather than harsha's raw copy.UI fix
TeamsPage.tsx: only merge a fetched team intoselectedTeamwhen the ids match. Before this, switching teams could carry fields over from the previously selected team.Playwright (103 files)
taskWorkflow.ts, and more.importUtils,incidentManager,ServiceBaseClass,glossary, and others.chooseSelectOption,dismissToasts,dismissHoverPopovers,searchDataProductOptions,waitForAriaModalToSettle,waitForAntdModalToSettle,expectLineageNodeVisible,openLineageNodeDrawer.no-positional-locator1149 → 1096,no-wait-for-selector24 → 22.Deliberately kept on main
DataContractsSemanticRules,Pagination,Tasks/DomainFiltering: they only compile against harsha's versions of conflicted utils (dataContractssignatures,TableClass).browser-tests/indexedDbStorage.spec.ts: needsscripts/patch-playwright-indexeddb.cjsfrom chore(#33088 split): UI runtime + docs bulk (safe-modified, 61 files) #33933; it can follow once that lands.playwright.config.tsandglobalSetup.ts/visual-regression.setup|teardown.ts: the config setsretries: 0and changes merge-queue reporter and trace settings.MetricDetailsandsetupTests.js: main already has the behaviour, and the tests target a manage menu main has since replaced.entity_fqn → TEXTmigration is already on main.Verification
tsc -p playwright/tsconfig.jsonandtsc -p tsconfig.json: no new errors compared with main.playwright test --list: all files resolve.yarn lint:playwright: 0 errors;yarn test:eslint-rulespasses; rule table is current.jest src/pages/TeamsPage: 25/25.Any spec that fails CI against main's UI will be reset to main in a follow-up commit rather than patched.
🤖 Generated with Claude Code