Skip to content

test(playwright): dismiss AI alert popovers from the start of the subtitle - #38605

Merged
harsh-vador merged 2 commits into
mainfrom
fix/ai-alert-dismiss-popover-start
Nov 24, 2026
Merged

harsh-vador merged 2 commits into
mainfrom
fix/ai-alert-dismiss-popover-start

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the AlertNotificationTemplateAiMode failure: Collate's merge queue has failed on it since #38286. Companion Collate PR: https://github.com/open-metadata/openmetadata-collate/pull/8914, which this unblocks; it needs no Collate change, because Collate imports this helper from the OSS mirror. Test fix, so no issue (labelled skip-pr-checks).

dismissPopover in playwright/e2e/Utils/aiAlertDrawer.ts now clicks the start of the header subtitle (position: { x: 4, y: 4 }) instead of its centre. #38286 had already made that change in its sibling closeSourcePicker (utils/profileNotificationAlert.ts), but not here. closeSourcePicker now calls dismissPopover instead of repeating it, so the two can't drift apart again.

RCA. From the Collate merge-queue run https://github.com/open-metadata/openmetadata-collate/actions/runs/45375767906/job/138395224645:

  • What broke: all 5 AlertNotificationTemplateAiMode tests timed out on the profile alert page (ai-profile-page).
    • The click in selectAlertSource → dismissPopover on the subtitle "Stay current with timely alerts using webhooks." retried for the whole test budget.
    • Each attempt reported that a tw:flex tw:w-full tw:min-w-0 tw:flex-1 tw:flex-wrap tw:gap-x-2 div intercepts pointer events.
  • Why: Show when an alert is disabled and not running #38286 (40e75c179d4) added the Enabled settings row to the top of the alert form.
    • That pushes the source picker down, so on the profile page its Suggestions listbox opens upwards over the middle of the subtitle.
    • The intercepting div is an option row. The failure snapshot shows the listbox open over the header.
  • Why OSS stayed green:
    • Show when an alert is disabled and not running #38286 moved closeSourcePicker, which OSS's profile-page specs use, to the subtitle's start.
    • It left the twin dismissPopover unchanged. That one is shared by the drawer specs and by Collate's profile-page spec.
    • In the drawer the popover does not reach the header, so the centre-click kept passing there.
  • Window: Collate's queue passed at 09:26 UTC and first failed at 10:20 UTC. Show when an alert is disabled and not running #38286 merged at 10:17 UTC.
alert-oss-stability oss-playwright-result alert-oss-drawer-result

Type of change:

  • Bug fix

High-level design:

N/A — one test helper, one line.

Tests:

Use cases covered

  • Profile alert page (Collate AlertNotificationTemplateAiMode): the source picker opens upwards over the subtitle. The dismiss now lands on uncovered text.
  • Drawer (AiObservabilityAlerts, AiAlertSeveralSources): the dismiss keeps closing the popover.
  • OSS profile page (ProfileNotificationTab, AiAlertSeveralSources › profile): closeSourcePicker now goes through dismissPopover.

Unit tests

Not applicable — Playwright helper only.

Backend integration tests

Not applicable — no backend changes.

Ingestion integration tests

Not applicable — no ingestion changes.

Playwright (UI) tests

Collate UI served by vite from this branch, which includes #38286, against a Collate :8585 backend. All runs use --retries=0.

Spec Result
Collate AlertNotificationTemplateAiMode.spec.ts, control (helper from main) 5/5 failed, with the same "intercepts pointer events" as CI
Collate AlertNotificationTemplateAiMode.spec.ts, this branch 5/5 passed
Same, --repeat-each=3 15/15 passed
Features/AIMode/AiObservabilityAlerts.spec.ts and Features/AIMode/AiAlertSeveralSources.spec.ts (every other dismissPopover caller), on 22a71590ade 7/7 passed
Stability, on aa59f7b0c3f: Collate AlertNotificationTemplateAiMode.spec.ts, --repeat-each=10 --workers=4 50/50 passed
Stability, on aa59f7b0c3f: ProfileNotificationTab, AiAlertSeveralSources and AiObservabilityAlerts, --repeat-each=10 --workers=4 150/160 passed (see below)

The 10 failures are all one test, and they come from my local setup. ProfileNotificationTab › Alert with recent events check throws PLAYWRIGHT_WEBHOOK_HOST must be defined… cannot reach the Playwright webhook receiver through localhost before it reaches the UI. It fails the same way with main's helpers (control run, 2/2 failed).

yarn lint:playwright: 0 errors. The 193 warnings are all in untouched files.

Result (HTML report screenshot)

Manual testing performed

  1. Read the failure snapshot from the Collate run. The source picker's Suggestions listbox is open over the profile page's header, under the new Enabled row.
  2. Reproduced locally with main's helper (the control above), then confirmed the fix on the same UI.

UI screen recording:

Not applicable — this changes a test helper only; no UI behaviour changes.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — test fix, so it has a descriptive title instead.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — test fix, labelled skip-pr-checks.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed. — N/A
  • For a UI feature or feature task: … — N/A, test helper only.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above. — The existing specs cover this helper; the runs are listed above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    Reviewed with fresh context against REVIEW.md and the handbook.
    • 22a71590ade: no 🔴. Fixed 🟡 "copies an existing helper" in aa59f7b0c3f: closeSourcePicker now reuses dismissPopover, and the comment names the Collate caller. Answered 🟡 "green check cannot cover the profile-page case" with the Collate control and stability runs above.
    • aa59f7b0c3f: no 🔴. Its 🟡 asks the description to say dismissPopover's click point changes for every caller; it does.
  • Decision check: no durable decision; no record needed.

🤖 Generated with Claude Code

…title

#38286 added the Enabled row to the alert form, so on the profile alert
page the source picker opens its list upwards over the middle of the
header subtitle and dismissPopover's click lands on an option row.
Click the subtitle's start, as closeSourcePicker already does.
closeSourcePicker repeated dismissPopover's subtitle click, and the two
drifted apart once already. Reuse it.
@harsh-vador
harsh-vador requested a review from a team as a code owner November 24, 2026 14:08
@harsh-vador harsh-vador added the skip-pr-checks Bypass PR metadata validation check label Nov 24, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Nov 24, 2026
@gitar-bot

gitar-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The change adjusts a Playwright helper’s click point and reuses it for the profile picker; it affects test interactions, not application behavior.

Changes the dismissPopover helper in playwright/e2e/Utils/aiAlertDrawer.ts to click the start of the header subtitle instead of its centre, and makes closeSourcePicker reuse it, so the profile alert page's source picker no longer intercepts the click. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@harsh-vador
harsh-vador enabled auto-merge (squash) November 24, 2026 14:13
@github-actions

Copy link
Copy Markdown
Contributor

UI browser tests

Ran: all test files (no impact map from main yet)

Result: ✅ 1070 passed · 154 skipped

@harsh-vador
harsh-vador merged commit 2d215b7 into main Nov 24, 2026
55 checks passed
@harsh-vador
harsh-vador deleted the fix/ai-alert-dismiss-popover-start branch November 24, 2026 14:32
harsh-vador added a commit that referenced this pull request Nov 25, 2026
…title (#38605) (#38653)

* test(playwright): dismiss AI alert popovers from the start of the subtitle

#38286 added the Enabled row to the alert form, so on the profile alert
page the source picker opens its list upwards over the middle of the
header subtitle and dismissPopover's click lands on an option row.
Click the subtitle's start, as closeSourcePicker already does.

* test(playwright): close the profile source picker through dismissPopover

closeSourcePicker repeated dismissPopover's subtitle click, and the two
drifted apart once already. Reuse it.

(cherry picked from commit 2d215b7)
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 skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants