E2E Defect: hero-feed.spec.ts:263:6 modal displays correct content sections #61

Open
opened 2026-02-14 02:03:58 +00:00 by santhoshj · 0 comments
Owner

Automated regression reported this failure from Playwright artifacts.

Defect Details

  • Case key: hero-feed.spec.ts:263:6 modal displays correct content sections
  • Suite: capabilities\core-journeys\hero-feed.spec.ts
  • Test: Summary Modal Flows › modal displays correct content sections
  • Failure frequency: 7

Error Message

[desktop-chrome] › capabilities\core-journeys\hero-feed.spec.ts:263:6 › Summary Modal Flows › modal displays correct content sections       Error: expect(locator).not.toBeEmpty() failed      Locator: locator('[role="dialog"][aria-modal="true"]:has-text("TL;DR")').locator('.modal-body-text')     Expected: not empty     Error: strict mode violation: locator('[role="dialog"][aria-modal="true"]:has-text("TL;DR")').locator('.modal-body-text') resolved to 2 elements:         1) <ul class="list-disc pl-5 space-y-1 text-sm modal-body-text" x-show="!modalTldrLoading && modalItem?.tldr_points && modalItem.tldr_points.length > 0">…</ul> aka locator('ul')         2) <p class="text-sm leading-relaxed modal-body-text" x-text="modalItem?.summary_body || modalItem?.summary || ''">Multiple surveys confirm that more than half of G…</p> aka getByText('Multiple surveys confirm that')      Call log:       - Expect "not toBeEmpty" with timeout 5000ms       - waiting for locator('[role="dialog"][aria-modal="true"]:has-text("TL;DR")').locator('.modal-body-text') 

Evidence (Screenshots/Error Context)

  • e2e/test-results/capabilities-core-journeys-f7853-ys-correct-content-sections-desktop-chrome\test-failed-1.png
  • e2e/test-results/capabilities-core-journeys-f7853-ys-correct-content-sections-desktop-chrome\error-context.md

Root Cause Analysis

Selector ambiguity: locator matches multiple dialogs (article summary and policy modal) causing strict-mode failures.

Automated regression reported this failure from Playwright artifacts. ## Defect Details - Case key: `hero-feed.spec.ts:263:6 modal displays correct content sections` - Suite: `capabilities\core-journeys\hero-feed.spec.ts` - Test: `Summary Modal Flows › modal displays correct content sections` - Failure frequency: 7 ## Error Message ```text [desktop-chrome] › capabilities\core-journeys\hero-feed.spec.ts:263:6 › Summary Modal Flows › modal displays correct content sections Error: expect(locator).not.toBeEmpty() failed Locator: locator('[role="dialog"][aria-modal="true"]:has-text("TL;DR")').locator('.modal-body-text') Expected: not empty Error: strict mode violation: locator('[role="dialog"][aria-modal="true"]:has-text("TL;DR")').locator('.modal-body-text') resolved to 2 elements: 1) <ul class="list-disc pl-5 space-y-1 text-sm modal-body-text" x-show="!modalTldrLoading && modalItem?.tldr_points && modalItem.tldr_points.length > 0">…</ul> aka locator('ul') 2) <p class="text-sm leading-relaxed modal-body-text" x-text="modalItem?.summary_body || modalItem?.summary || ''">Multiple surveys confirm that more than half of G…</p> aka getByText('Multiple surveys confirm that') Call log: - Expect "not toBeEmpty" with timeout 5000ms - waiting for locator('[role="dialog"][aria-modal="true"]:has-text("TL;DR")').locator('.modal-body-text') ``` ## Evidence (Screenshots/Error Context) - `e2e/test-results/capabilities-core-journeys-f7853-ys-correct-content-sections-desktop-chrome\test-failed-1.png` - `e2e/test-results/capabilities-core-journeys-f7853-ys-correct-content-sections-desktop-chrome\error-context.md` ## Root Cause Analysis Selector ambiguity: locator matches multiple dialogs (article summary and policy modal) causing strict-mode failures.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/clawfort#61