E2E Defect: hero-feed.spec.ts:39:6 news feed loads with multiple articles #26

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

Automated regression reported this failure from Playwright artifacts.

Defect Details

  • Case key: hero-feed.spec.ts:39:6 news feed loads with multiple articles
  • Suite: capabilities\core-journeys\hero-feed.spec.ts
  • Test: Hero and Feed Browsing @smoke › news feed loads with multiple articles
  • Failure frequency: 8

Error Message

[smoke-chromium] › capabilities\core-journeys\hero-feed.spec.ts:39:6 › Hero and Feed Browsing @smoke › news feed loads with multiple articles       Error: expect(locator).toContainText(expected) failed      Locator: locator('section:has(h2:has-text("Recent News"))').locator('h2')     Expected substring: "Recent News"     Error: strict mode violation: locator('section:has(h2:has-text("Recent News"))').locator('h2') resolved to 2 elements:         1) <h2 class="text-xl font-bold mb-6 flex items-center gap-2">…</h2> aka getByRole('heading', { name: 'Recent News' })         2) <h2 x-text="modalItem?.headline || ''" class="text-xl sm:text-2xl font-bold leading-tight modal-article-title"></h2> aka getByLabel('Article summary').locator('h2')      Call log:       - Expect "toContainText" with timeout 5000ms       - waiting for locator('section:has(h2:has-text("Recent News"))').locator('h2') 

Evidence (Screenshots/Error Context)

  • e2e/test-results/capabilities-core-journeys-9cd6c-oads-with-multiple-articles-smoke-chromium\test-failed-1.png
  • e2e/test-results/capabilities-core-journeys-9cd6c-oads-with-multiple-articles-smoke-chromium\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:39:6 news feed loads with multiple articles` - Suite: `capabilities\core-journeys\hero-feed.spec.ts` - Test: `Hero and Feed Browsing @smoke › news feed loads with multiple articles` - Failure frequency: 8 ## Error Message ```text [smoke-chromium] › capabilities\core-journeys\hero-feed.spec.ts:39:6 › Hero and Feed Browsing @smoke › news feed loads with multiple articles Error: expect(locator).toContainText(expected) failed Locator: locator('section:has(h2:has-text("Recent News"))').locator('h2') Expected substring: "Recent News" Error: strict mode violation: locator('section:has(h2:has-text("Recent News"))').locator('h2') resolved to 2 elements: 1) <h2 class="text-xl font-bold mb-6 flex items-center gap-2">…</h2> aka getByRole('heading', { name: 'Recent News' }) 2) <h2 x-text="modalItem?.headline || ''" class="text-xl sm:text-2xl font-bold leading-tight modal-article-title"></h2> aka getByLabel('Article summary').locator('h2') Call log: - Expect "toContainText" with timeout 5000ms - waiting for locator('section:has(h2:has-text("Recent News"))').locator('h2') ``` ## Evidence (Screenshots/Error Context) - `e2e/test-results/capabilities-core-journeys-9cd6c-oads-with-multiple-articles-smoke-chromium\test-failed-1.png` - `e2e/test-results/capabilities-core-journeys-9cd6c-oads-with-multiple-articles-smoke-chromium\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#26