Skip to content

test(playwright): bulk-refresh 202 e2e specs + waitHelpers - #33930

Merged
chirag-madlani merged 16 commits into
mainfrom
chirag-madlani/playwright-e2e-specs-bulk
Sep 27, 2026
Merged

chirag-madlani merged 16 commits into
mainfrom
chirag-madlani/playwright-e2e-specs-bulk

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #33087

Describe your changes:

DRAFT — bulk-refresh 203 files from #33088:

  • 200 safe-modified e2e specs (main hasn't touched these files since our merge-base; wholesale copy from harshach's branch is safe)
  • 2 pure-add specs (visual-regression.setup.ts, visual-regression.teardown.ts)
  • 1 helper (utils/waitHelpers.ts) that 48 of the refreshed specs import; safe on main (untouched since merge-base)

Type of change:

  • Test hardening / refresh (no product code change)

Notes

Marked draft until earlier wave (#33877, #33880, #33881, #33882, #33883) settles — those PRs share the "review budget."

Files where both main and harshach diverged from merge-base need per-file conflict resolution and are deliberately excluded (will land in follow-ups if worth the effort).

Cherry-picked from #33088. All original content authored by @harshach.

🤖 Generated with Claude Code

Refreshes 200 safe-modified e2e specs from #33088 (main hasn't touched
these files since our merge-base, so a wholesale copy from harshach's
branch is safe) plus 2 pure-add specs.

Also refreshes utils/waitHelpers.ts (safe, main untouched) which adds:
- waitForResponseWithStatus (48 of the refreshed specs import this)
- waitForAntOverlayToOpen (Ant animation-settle helper)

Files where both main and harshach diverged from merge-base need per-file
conflict resolution and are deliberately excluded (will land in follow-ups).

Cherry-picked from #33088. All original content authored by @harshach.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ SSO Login Nightly — PASSED

View workflow run · Commit efe5755

Provider Status Pass Fail Flaky Skip Duration
basic ✅ pass 6 0 0 0 0m 36s
ldap ✅ pass 6 0 0 0 0m 38s
keycloak-oidc-confidential ✅ pass 9 0 0 0 1m 05s
keycloak-oidc-public ✅ pass 8 0 0 0 0m 37s
msal-mock ✅ pass 5 0 0 0 0m 25s
auth0-mock ✅ pass 5 0 0 0 0m 22s
okta ✅ pass 2 0 0 0 0m 22s
keycloak-azure-saml ✅ pass 1 0 0 0 0m 25s
keycloak-azure-saml-crosssite ⏩ skipped - - - - -

Totals: 42 passed · 0 failed · 0 flaky · 0 skipped · duration 4m 33s

…ight-e2e-specs-bulk

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityStream.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Glossary/GlossaryMiscOperations.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/MutuallyExclusiveColumnTags.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/TeamActivity.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Tags.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/staticPages.spec.ts-snapshots/glossary.png
…elpers

Bot findings (gitar):

1) 40 refreshed specs imported symbols/modules that don't exist on main
   (taskActivity/taskPermissions fixtures, ingestionExecution, and helpers
   like chooseSelectOption/getTaskCard/saveBulkImport/…). Bringing the
   producer files over is out of this PR's split scope. Reset each spec
   to main so it compiles.

2) visual-regression.setup.ts + .teardown.ts were added but never wired
   in playwright.config.ts, so their fixed-name glossary fixture was
   never created — interactiveStates.spec.ts and staticPages.spec.ts
   depended on it. Both those specs got reset to main in (1), so the
   setup/teardown are now orphaned; dropping.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ight-e2e-specs-bulk

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/ActivityFeed.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/TaskPermissions.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/TaskResolution.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/TeamActivity.spec.ts
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 807 → 807
- 0 added, 0 removed, 27 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/constant/permission.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/access-control/PoliciesClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/access-control/RolesClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/domain/Domain.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/Entity.interface.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TaskClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/base.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/team/TeamClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/user/UserClass.ts
  … and 17 more

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

chirag-madlani and others added 3 commits September 26, 2026 15:10
…ight-e2e-specs-bulk

# Conflicts:
#	.github/playwright/impact-map.generated.json
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/AddTestCaseNewFlow.spec.ts
#	openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/TestSuitePipelineRedeploy.spec.ts
… formatting

- 43 specs imported helpers/modules not on main (clickFeedReaction,
  gotoVisualGlossary, taskActivity fixtures, chooseSelectOption, ...).
  That broke `playwright test --list` (plan-playwright), visual-regression,
  and the bot-flagged ActivityFeed/ActivityAPI imports. Found by diffing
  `tsc -p playwright/tsconfig.json` against main; reset each to main.
  Earlier reset in 9a344f3 was a no-op (zsh word-splitting) — this is
  the real one. PR-introduced type errors: 0; `--list` load errors: 0.
- f82ba08 committed organize-imports output (4-space, no trailing
  commas) because the bulk prettier call aborted. Re-ran CI's exact
  organize-imports → eslint --fix → prettier sequence per file; a second
  pass produces no diff.
- Pruned eslint-suppressions and lowered the recorded no-positional-locator
  count 1155 → 1145 in corpus.test.mjs (10 violations fixed here).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 804 → 805
- 2 added, 1 removed, 19 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/playwright/utils/ingestionExecution.ts
  openmetadata-ui/src/main/resources/ui/src/generated/events/testDestinationStatus.ts

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/playwright/constant/logsViewer.ts

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/serverLoad.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/tag/ClassificationClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/tag/TagClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/ContextCenterUtil.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/apiResponse.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/waitHelpers.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/webhook.ts
  openmetadata-ui/src/main/resources/ui/src/components/Modals/ModalWithMarkdownEditor/ModalWithMarkdownEditor.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Modals/ModalWithQueryEditor/ModalWithQueryEditor.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Modals/UnsavedChangesModal/UnsavedChangesModal.component.tsx
  … and 9 more

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

chirag-madlani and others added 4 commits September 26, 2026 20:22
Same wholesale-copy artifact as #33932: 8 specs had an import after the
test bodies. Moved each into the import block, merged via organize-imports,
then CI's organize-imports → eslint --fix → prettier sequence (second
pass: no diff).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ActivityStream, CuratedAssets, DataQualityDashboard, GlossaryMiscOperations,
MutuallyExclusiveColumnTags and SSOConfiguration asserted behaviour from the
source branch (hidden Client ID/Callback URL, OIDC fields behind the advanced
toggle, Knowledge Page curated type, ...) that main's UI does not have, so they
failed deterministically. Restore main's versions and their suppression entries.

Fixes #33087

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 805 → 805
- 0 added, 0 removed, 12 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/support/tag/ClassificationClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/tag/TagClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/ContextCenterUtil.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/waitHelpers.ts
  openmetadata-ui/src/main/resources/ui/src/components/Modals/ModalWithMarkdownEditor/ModalWithMarkdownEditor.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Modals/ModalWithQueryEditor/ModalWithQueryEditor.tsx
  openmetadata-ui/src/main/resources/ui/src/components/Tag/TagsContainerV2/TagsContainerV2.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/AsyncSelectList/AsyncSelectList.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/DeleteModal/DeleteModal.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/DeleteWidget/DeleteEntityModal.tsx
  … and 2 more

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

@gitar-bot

gitar-bot Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 4 closed / 4 findings

🟡 Medium risk · Bulk changes across Playwright specs alter test setup, assertions, and cleanup behavior

Bulk refresh of 203 Playwright e2e specs and test helpers from the upstream branch, including 200 safe-modified specs, 2 new visual-regression setup/teardown specs, and the waitHelpers.ts utility. Resolved missing imports (settleAll, helper modules), registered visual-regression setup/teardown in playwright.config, and addressed the clickFeedReaction export issue. No open issues remain.

✅ 4 closed
✅ Bug: auth.setup.ts imports a settleAll that doesn't exist on main, so every project fails

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/auth.setup.ts:196 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/auth.setup.ts:206 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/auth.setup.ts:322 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks.spec.ts:24 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks.spec.ts:79
auth.setup.ts now calls settleAll from ../utils/apiResponse, but on main apiResponse.ts only exports okJson, quoteFqnSegment, buildFqn, withNotFoundRetry and createOrFetch. Playwright transpiles the file, so the missing named import becomes undefined, and await settleAll([...]) throws TypeError: settleAll is not a function when the setup runs. setup is a dependency of chromium, visual-regression, entity-data-setup and the other projects, so none of the storage states get written and the whole E2E run fails. Five other refreshed specs (AdvancedSearch, Tasks, DomainFiltering, CustomizeWidgets, ObservabilityAlerts) hit the same missing export. Fix: port the settleAll (and deleteFixtureEntity) helpers from #33088 into utils/apiResponse.ts in this PR.

✅ Bug: Refreshed specs import helpers and fixture modules not in this PR

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/ActivityFeed.spec.ts:16-21 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/ActivityFeed.spec.ts:39 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks/TaskPermissions.spec.ts:15-23 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks.spec.ts:25 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Tasks.spec.ts:30-34 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/visual-regression.setup.ts:16-22 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/visual-regression.teardown.ts:14-16 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkImport.spec.ts:53-54 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkImport.spec.ts:390 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkImport.spec.ts:404 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityFeed.spec.ts:24-28 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityFeed.spec.ts:761 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityFeed.spec.ts:1303 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Glossary/GlossaryAdvancedOperations.spec.ts:22 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Glossary/GlossaryAdvancedOperations.spec.ts:83 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AutoPilot.spec.ts:81-94 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AutoPilot.spec.ts:186-191
The description says waitHelpers.ts is the only helper these specs need, but scanning the imports in the 200 changed specs finds 45 files that import symbols or modules that don't exist on main.

Missing modules (Playwright fails to load these files):

  • support/fixtures/taskActivity, imported by 6 Tasks specs
  • support/fixtures/taskPermissions, imported by TaskPermissions and TaskResolution
  • utils/ingestionExecution, imported by IngestionLogStreamLive

Missing exports (runtime TypeErrors):

  • chooseSelectOption, waitForAntdModalToSettle, dismissToasts, dismissHoverPopovers, searchDataProductOptions and waitForAriaModalToSettle from utils/common
  • getTaskCard, getTaskDisplayId and selectTaskStatusFilter from utils/task
  • saveBulkImport and previewBulkImportChanges from importUtils
  • clickFeedReaction, expectLineageNodeVisible, confirmPortRemoval
  • deleteFixtureEntity
  • VISUAL_GLOSSARY_* and gotoVisualGlossary from utils/visualRegression

The TypeScript lint/typecheck also fails. Fix: bring in the matching utils/support changes from #33088, or leave out the specs that depend on them.

✅ Bug: Visual-regression setup/teardown aren't registered in playwright.config

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/visual-regression.setup.ts:24-38 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/visual-regression.teardown.ts:18-29
The new visual-regression.setup.ts and visual-regression.teardown.ts create and delete the fixed-name glossary that interactiveStates.spec.ts and staticPages.spec.ts now screenshot. But playwright.config.ts on main has no project whose testMatch points at them, and the visual-regression project only depends on ['setup', 'entity-data-setup']. So the fixture never gets created, and the glossary snapshots will fail or show a missing page. Fix: add a visual-regression-setup project with teardown visual-regression-teardown, and add it to the visual-regression project's dependencies.

Closed: Bug: clickFeedReaction imported but not exported by utils/activityFeed

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityFeed.spec.ts:24-28 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityFeed.spec.ts:761 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityFeed.spec.ts:1306 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ActivityAPI.spec.ts
ActivityFeed.spec.ts imports clickFeedReaction from ../../utils/activityFeed and calls it at lines 761 and 1306. That module has no such export: it exports REACTION_EMOJIS, FEED_REACTIONS, waitForReactionResponse, reactOnFeedCard and similar helpers, and no other file in the repo defines clickFeedReaction. As a result, type-checking fails, and at runtime the two call sites throw TypeError: clickFeedReaction is not a function. ActivityAPI.spec.ts in this PR uses the same import and has the same problem. To fix it, add the helper to utils/activityFeed.ts (see the suggested code), or bring back the old inline [title="..."] clicks.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

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.

Merge queue: recover transient artifacts and stabilize recurring E2E failures

3 participants