E2E Defect: share.spec.ts:17:6 source link opens in new tab #40

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

Automated regression reported this failure from Playwright artifacts.

Defect Details

  • Case key: share.spec.ts:17:6 source link opens in new tab
  • Suite: capabilities\modal-experience\share.spec.ts
  • Test: Source CTA and Share Interactions › source link opens in new tab @smoke
  • Failure frequency: 8

Error Message

[smoke-chromium] › capabilities\modal-experience\share.spec.ts:17:6 › Source CTA and Share Interactions › source link opens in new tab @smoke       TypeError: Cannot read properties of undefined (reading 'locator')        10 | 		const hero = await waitForHero();       11 | 		await hero.locator(SELECTORS.hero.readButton).click();     > 12 | 		await expect(page.locator(SELECTORS.summaryModal.root)).toBeVisible();          | 		                  ^       13 | 	});       14 |       15 | 	let page: any;         at C:\dev\claws\e2e\tests\capabilities\modal-experience\share.spec.ts:12:21      attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────

Evidence (Screenshots/Error Context)

  • e2e/test-results/capabilities-modal-experie-58777-link-opens-in-new-tab-smoke-smoke-chromium\test-failed-1.png
  • e2e/test-results/capabilities-modal-experie-58777-link-opens-in-new-tab-smoke-smoke-chromium\error-context.md

Root Cause Analysis

Fixture/helper returned undefined page context, causing chained locator call to throw.

Automated regression reported this failure from Playwright artifacts. ## Defect Details - Case key: `share.spec.ts:17:6 source link opens in new tab` - Suite: `capabilities\modal-experience\share.spec.ts` - Test: `Source CTA and Share Interactions › source link opens in new tab @smoke` - Failure frequency: 8 ## Error Message ```text [smoke-chromium] › capabilities\modal-experience\share.spec.ts:17:6 › Source CTA and Share Interactions › source link opens in new tab @smoke TypeError: Cannot read properties of undefined (reading 'locator') 10 | const hero = await waitForHero(); 11 | await hero.locator(SELECTORS.hero.readButton).click(); > 12 | await expect(page.locator(SELECTORS.summaryModal.root)).toBeVisible(); | ^ 13 | }); 14 | 15 | let page: any; at C:\dev\claws\e2e\tests\capabilities\modal-experience\share.spec.ts:12:21 attachment #1: screenshot (image/png) ────────────────────────────────────────────────────────── ``` ## Evidence (Screenshots/Error Context) - `e2e/test-results/capabilities-modal-experie-58777-link-opens-in-new-tab-smoke-smoke-chromium\test-failed-1.png` - `e2e/test-results/capabilities-modal-experie-58777-link-opens-in-new-tab-smoke-smoke-chromium\error-context.md` ## Root Cause Analysis Fixture/helper returned undefined page context, causing chained locator call to throw.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/clawfort#40