Modal Focus Management Failure #28

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

Automated regression reported this failure from Playwright artifacts.

Defect Details

  • Case key: keyboard.spec.ts:221:6 focus moves to modal when opened
  • Suite: capabilities\accessibility\keyboard.spec.ts
  • Test: Focus Management › focus moves to modal when opened @smoke
  • Failure frequency: 8

Error Message

[smoke-chromium] › capabilities\accessibility\keyboard.spec.ts:221:6 › Focus Management › focus moves to modal when opened @smoke       Error: expect(received).toBe(expected) // Object.is equality      Expected: true     Received: false        239 | 		});       240 |     > 241 | 		expect(isFocusInModal).toBe(true);           | 		                       ^       242 | 	});       243 |       244 | 	test("focus is trapped within modal", async ({ page, waitForHero }) => {

Evidence (Screenshots/Error Context)

  • e2e/test-results/capabilities-accessibility-1c0c3--to-modal-when-opened-smoke-smoke-chromium\test-failed-1.png
  • e2e/test-results/capabilities-accessibility-1c0c3--to-modal-when-opened-smoke-smoke-chromium\error-context.md

Root Cause Analysis

Modal open flow does not move active element into modal focus scope reliably.

Automated regression reported this failure from Playwright artifacts. ## Defect Details - Case key: `keyboard.spec.ts:221:6 focus moves to modal when opened` - Suite: `capabilities\accessibility\keyboard.spec.ts` - Test: `Focus Management › focus moves to modal when opened @smoke` - Failure frequency: 8 ## Error Message ```text [smoke-chromium] › capabilities\accessibility\keyboard.spec.ts:221:6 › Focus Management › focus moves to modal when opened @smoke Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 239 | }); 240 | > 241 | expect(isFocusInModal).toBe(true); | ^ 242 | }); 243 | 244 | test("focus is trapped within modal", async ({ page, waitForHero }) => { ``` ## Evidence (Screenshots/Error Context) - `e2e/test-results/capabilities-accessibility-1c0c3--to-modal-when-opened-smoke-smoke-chromium\test-failed-1.png` - `e2e/test-results/capabilities-accessibility-1c0c3--to-modal-when-opened-smoke-smoke-chromium\error-context.md` ## Root Cause Analysis Modal open flow does not move active element into modal focus scope reliably.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/clawfort#28